I have creeated a custom cell renderer for JComboBoxes, based on DefaultListCellRenderer (my one basically shows a color). So far it works nicely.
The only problem is, when the JComboBox is disabled: In this case, I should also paint the color in a less shiny way (to show it is inactive). But how do I get the status in the ListCellRenderer ?
I tried isEnabled() or component.isEnabled(), but this does not seem accessible / give me the actual state of the Combo. In the DefaultListCellRenderer, there is a query to list.isEnabled(), but that does not make sence to me (and it does not work, either).
Any ideas?
A little bit tricky but possible ;)