GeeCON Prague 2014*
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


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
 
GeeCON Prague 2014
 
subject: change the text color momentarily