Posted By:
Scott_Stanchfield
Posted On:
Wednesday, April 25, 2001 08:10 AM
Create your own renderer that uses a JPanel with two labels in it.
Nest the labels using a BorderLayout, something like
JPanel p = new JPanel(new BorderLayout());
JLabel iconOnly = new JLabel(someIcon);
JLabel iconAndText = new JLabel(someText,anotherIcon);
p.add(iconOnly, BorderLayout.WEST);
p.add(iconAndText, BorderLayout.CENTER);
See the Swing FAQs for how to write renderers