JTextArea
is for plain text, not formatted. That means that at any moment, it can have one font, at one size, in one color.
If the app. needs formatted text, look to JEditorPane
or JTextPane
. See How to Use Editor Panes and Text Panes for details and working source.