Hey guys,
I am writing a small script that requires me to make text that is within a textArea multi coloured. I will show an example in the quote box below:

Hello, How are do you?
I am Fine, how are you?
Great!

I was wondering if there was a way to do this, as I append my textArea.

Thanks PO

Recommended Answers

All 2 Replies

I don't believe so (although you can try with HTML marked text as with JLabel, but I don't think it works for a textarea).

Check out JEditorPane.

JTextPane displays HTML

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.