How can I change the color of the font or text?
I've tried area.setFontColor, area.setColor, comic.setColor.
area is the JTextArea.
comic is a font.
arial is a font.
I have a

final Color red = new Color();
red =;

but I don't know how to set the Font or Text to a Color. Do you know how?

You have create an instance of Font first and use that in your setFont() call.

Take a look at the tutorial on using JTextArea.

The tutorial on your link doesn't tell me anything about the color of the font.

Try putting in this works!

Font font = new Font("Verdana", Font.BOLD, 12);

This question has already been answered. Start a new discussion instead.