wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes changing JTable cell's font color ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "changing JTable cell Watch "changing JTable cell New topic
Author

changing JTable cell's font color ?

Grigory Ptashko
Greenhorn

Joined: Feb 21, 2003
Posts: 9
Hello.
Can anyone tell me how can I change cell's font color when a value contained in that cell is changed either by hands (clicking and changing) or by anything else ?
Thank you.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
You need a renderer for your table. Here is an example with colored cells.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: changing JTable cell's font color ?
 
Similar Threads
Changing color of a tables' cell
TableCellRenderer
Different colored text?
XSLT Help
change font size or color in javascript alert box