A
A
Anton @ Lyalin2017-04-08 08:46:06
JavaFX
Anton @ Lyalin, 2017-04-08 08:46:06

Is it possible in JavaFX in textarea to highlight certain words?

There is a TextArea field where the text is displayed, by clicking on the button I need to find certain words in the TextArea, which can be somehow highlighted so that it can be seen whether they are in the text and where they are. How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shockoway, 2017-04-08
@Shockoway

The standard TextArea does not support the ability to set the contents of a different design, strictly one for all.
Therefore, it remains either to use a third-party implementation, such as RichTextFX , or some HTMLEditor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question