1
1
123qwe2015-10-12 15:00:13
Java
123qwe, 2015-10-12 15:00:13

How to change text color in JTextArea?

I searched, I even found something on this topic, but the color does not change.
It stays grey. I need to at least make it black.
Are there any options?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Kornachev, 2015-10-12
@Yonghwa

JTextArea field_textArea = new JTextArea();
field_textArea.setForeground(Color.green);

It's always been like that. How did you try to do it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question