*
The moose likes Swing / AWT / SWT and the fly likes JTable Cell Selection color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Cell Selection color" Watch "JTable Cell Selection color" New topic
Author

JTable Cell Selection color

Sebastiaan Kortleven
Ranch Hand

Joined: Mar 12, 2004
Posts: 81
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

Joined: Mar 12, 2004
Posts: 81
sorry.. got it...
I'm using cellrenderers for each of the components in the jtable..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable Cell Selection color
 
Similar Threads
Color in JTable
How to change the colour of an JTable Cell dynamically
JTable
JTable
JTable