Component (final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { final Component comp = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); setText(getElementText(value)); setIcon(getElementIcon(value)); return comp; }