File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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