I have a JList box in my application. In disabled mode the data in the list box looks embossed. (grey color). I want the list box to be in disabled mode but the font should be black in color. Does anybody know how to do this?
The 'look and feel' takes care of how list items are rendered. Probably, the solution would be to write a new ListCellRenderer to over-ride the default behaviour and then <code> setCellRenderer(myCellRenderer)</code>
Joined: Dec 21, 2004
Hi, I added Cell renderer but even then it is not working.
But even then it didnt work....It is displaying in grey color only.
I also tried changing the default value by
Even with this it didnt work. Can u tell me whether the cellrendered class which i have written is correct or not.
If its not correct, can u give me some hints
subject: In disabled mode, how do i make JList data to be in black color