This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes change the text color momentarily Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "change the text color momentarily" Watch "change the text color momentarily" New topic
Author

change the text color momentarily

Araad Izadkhah
Greenhorn

Joined: Nov 07, 2005
Posts: 15
hey folks,
I have a JTextArea that I want to display different things in different color. everytime i use the setForground(Color.whatever) it changes the whole thing, even when i set it back to the original.

any idea?
thx in advance
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
use a JTextPane
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: change the text color momentarily
 
Similar Threads
color Java text
JTable -background color
two different styles in one string ?
Sequencing Records
FTP upload