posted 13 years ago
Yes, the answer is, that you have to write your own ListCellRenderer. This yo can do either by implementing it or you extend from DefaultListCellRenderer, which is mostly the best choice. Anyway, you have to implement the method getListCellRendererComponent. In order to implement it right, you should have a look to the implementation of DefaultListCellRenderer. However, in the getListCellRendererComponent method you can set the color of your component to whatever you want.