Is there a way to change the color of the text in a JTextArea? I want to change all the text color to one color (other than black) and I just want to know how to do this. I see a lot of methods involving color but they only effect the text "highlighting" portion.
paradox814
1
Posting Whiz
Recommended Answers
Jump to PosttextArea.setForeground(Color.blue);
There might be some mistakes in the Foreground part, I can't remember how to spell right now, nor which letters to capitalize.
Jump to PostIt looks right to me and capitilaztion looks right.
All 6 Replies
server_crash
64
Postaholic
OurNation
5
Master Poster
Ghost
0
Posting Whiz
acomer
0
Newbie Poster
JavaWizz
0
Newbie Poster
carnado2008
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.