Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

spell checker for java fx [duplicate]

We are using JavaFX's TextArea control in our application, and trying to integrate it with Jazzy Spell Check API - as in, when a user enters a wrong word that is not in the dictionary, such word would be highlighted.

Is there a way to highlight a word in said control? I've seen no options for that in the JavaDocs, so if someone could suggest an approach?

It could be possible, I guess, to use the HTMLEditor component and color the words diferently with <font face="red=>wrongWord</font>. This, however, brings a whole lot of different problems with the spell checking, such as the html tags and words count.

like image 781
Marcelo Avatar asked Apr 05 '26 20:04

Marcelo


1 Answers

RichTextFX allows you to add style to text ranges.

like image 152
Tomas Mikula Avatar answered Apr 08 '26 10:04

Tomas Mikula



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!