This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "changing JTable cell Watch "changing JTable cell New topic

changing JTable cell's font color ?

Grigory Ptashko

Joined: Feb 21, 2003
Posts: 9
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.
I agree. Here's the link:
subject: changing JTable cell's font color ?
jQuery in Action, 3rd edition