This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable row coloring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable row coloring" Watch "JTable row coloring" New topic
Author

JTable row coloring

sonia jacob
Greenhorn

Joined: Aug 22, 2002
Posts: 5
hi ,
I would like to setForeground color for a row in JTable.
Setting different foreground colors for different rows.
How can i do this.
- sonia
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
You will need your own renderer. Take a look at some of the examples here. They should help you. You can also look at the sun tutorial.
sonia jacob
Greenhorn

Joined: Aug 22, 2002
Posts: 5
Thanks Paul,
This seems to be a very good examples site
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable row coloring
 
It's not a secret anymore!