Having text with different formats within one GUI component

I'm attempting to output text in a GUI but would like to change the formatting for certain areas of the text - i.e. most of it would be plain text but some areas of it are to be highlighted.

I was expecting to be able to do this using a simple jTextArea but as far as I can tell it only accepts one text format for the whole control...?

So my question is, is what I want to do possible and how do I go about it?

Thanks in advance!

Message was edited by:

thoseion

[501 byte] By [thoseiona] at [2007-11-27 2:59:49]
# 1
http://java.sun.com/docs/books/tutorial/uiswing/components/text.html
DrClapa at 2007-7-12 3:40:33 > top of Java-index,Java Essentials,Java Programming...