• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable paint the cells

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I have implemented a JTable with the help of
HOW TO USE TABLES article.

anyway, it's good but I have one issue. I added render to color the cells (extends DefaultTableCellRenderer) and the colors applies with the getTableCellRendererComponent.

so say a studendt has a GPA above 3.8 it colors the cell in GREEN. But what happens if I wish to color the STUDENT NAME in green *if* he's GPA is above 3.8?

thanks for any help
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SUPER ! thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!