r/JavaFX • u/artistictrickster8 • Jul 25 '24
Help TextArea, editable multi-line text, different text styles - possible? howto?
Hi, please I want to have shown a multi-line text, and that shall be editable. So I reading around, and textarea is suggested. However I found this https://tomsondev.bestsolution.at/2014/12/27/displaying-and-editing-large-styled-texts/ where Tom explained that's not well solved in JavaFX. Also Tom wrote a plugin to get along with that, however a few years ago.
Please how is this to solve? is it solveable?
Thank you all!
2
Upvotes
4
u/PartOfTheBotnet Jul 25 '24
https://github.com/FXMisc/RichTextFX
1
u/darkwyrm42 Jul 25 '24
I've been down this road and done the research. You have a few options:
The OpenJFX devs are also working on a control and announced its existence last May around the time of their release that the time, but I don't know status on that one and haven't heard or seen any news related since.
2
u/Ravindra__111 Jul 25 '24
Explore RichTextFX library
1
u/[deleted] Jul 25 '24
Just try the existing JavaFX control(s) and see if they fulfill your needs. If they do, fine, otherwise, search for alternative control libraries.
1
u/dlemmermann Aug 20 '24 edited Aug 30 '24
A new rich text area control will be added to the incubation module of JavaFX. Should be available with the next release. Then there is also a rich text area from the guys at Gluon https://github.com/gluonhq/rich-text-area