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

JTable Cell Selection color

 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
When selecting a row in a JTable, that rows background color turns blue (or whatever you want it to be) while the current selected cells colors stays the same (white background, black foreground).. how can i change this?
It's because I have a lot of data in different tables. A user can select which columns he wants to see and which he doesn't... but when only selecting 1 column, you can't see which row you just selected...
Thanks!
 
Sebastiaan Kortleven
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry.. got it...
I'm using cellrenderers for each of the components in the jtable..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic