Varying colors within JTextArea
Reading through the Java tutorials, it states that "[i]a given text area can display text in only one font and color.[i]" Is there any way to get around this?
I have a JTextArea that is going to be a chat pane and would like the chat to appear with different color codings and possibly alternating boldface for time, username, and text. For example,
[14:09] Psyclone: Insert message here.
I know other programming languages can pull this off. Can it be done through JTextArea though?