Posted By:
Bahman_Barzideh
Posted On:
Thursday, March 27, 2003 05:01 AM
Can't be done.
JTextArea is monochrome. It supports a
single foreground (text) color on a single background color. I also
supports a single
Font for its text. for attributed text
support (different foreground/background colors, and different fonts
for different parts of the text), you should look into the
JTextPane class or its parent class,
JEditorPane.
You can find more information about text fields in this Sun tutorial on
Using Text Components.