Is it possible to highlight some parts of text in JEditorPane, when I have a list of Strings to highlight?
Using HTML tags is not possible (text will contain some tags).
Is creating cutstom EditorKit necessary?
Thanks
getHighlighter().addHighlight(start, end,
new DefaultHighlighter.DefaultHighlightPainter(Color.red));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With