posted 24 years ago
Ok, I used a class extending JLabel and implementing cell renderer. It works BUT, if I do not implement it, there is no change of background color when the row of the JTable is selected. It remains a simple JLabel all the time.
So, in my renderer class, I would like to write:
if (isSelected == true){this.setBackground =Color.white;}
else {this.setBackground = Color.???}
"this" is the JLabel.
But how to get the appropriate color to highlight?On my computer,
the higlight color of the default renderer is a "Lavande" color, that is blue grey purple. Does the color remain the same on all the platform, PLAF, setting?
Or should I get a system property, a color model??? I can not find my answer in the API.
Thanks for your help
Olivier