Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable row coloring

 
sonia jacob
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul,
This seems to be a very good examples site
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic