1

I want to highlight the text in a JTextComponent with two different colors.

Is this possible with JTextArea (and if yes how?) - or do I need to use JTextPane or JEditorPane (if latter: which one is to recommend if the only thing I really want to 'style' are different background colors)?

thanks in advance

0 Answers0