public int getSize() {
return model.size();
}
});
if (UIManager.getLookAndFeel() instanceof SubstanceLookAndFeel) {
list.setCellRenderer(new SubstanceDefaultListCellRenderer() {
@Override
public Component getListCellRendererComponent(JList list,
Object value, int index, boolean isSelected,
boolean cellHasFocus) {
return super.getListCellRendererComponent(list,