I am attempting to set multiple text colors for a String
in a JTextArea. I have tried multiple things such as:
<html>Text color: <font color='red'>red</font><font color ="black">Hi</font></html>
<html>Text color: <font color="red">red</font><font color ="black">Hi</font></html>
But it just appears as that itself. I read things such as use JEditorPane or JTextPane and I thought of it but I'm unfamiliar with all the things that'd require to use. I'd have to learn it eventually but not now.
EDIT: I have learned that you can't use colors on JTextArea