Dear Readers,
I read up a Tutorial on ListCellRenderer. There they showed me how to set an icon to a label and return it as a Component. I wanted to do heavy modification to the JList.
I thought of customizing a JPanel according to my needs and then returning it. But I ran into a problem.
When I simply add some labels to the JPanel and return it, it works.
But, when I try to use the paintComponent(Graphics g) method to draw an image and add a
String to the JPanel, the JList just shows up blank.
Can you help me on how to overcome this problem?
[ January 13, 2007: Message edited by: Shyam Prasad Murarka ]