Not. What you are looking for, JEditorPane
This supports HTML (3.2?), Which will allow you to use <font> (and other old tags) to provide rich text.
JEditorPane textarea = new JEditorPane("text/html", ""); textarea.setText("Here is some <b>bold text</b>");
EDIT . According to the javadoc that I referenced above, JEditorPane also supports limited RTF. Remember to change MIME to text/rtf
Matt
source share