cb.setRenderer(new SubstanceDefaultComboBoxRenderer(cb) {
@Override
public Component getListCellRendererComponent(JList list,
Object value, int index, boolean isSelected,
boolean cellHasFocus) {
SkinInfo si = (SkinInfo) value;
return super.getListCellRendererComponent(list, si
.getDisplayName(), index, isSelected, cellHasFocus);
}
});
panel.add(new JLabel("All skins:"));
panel.add(cb);