Component (JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { RunnerAndConfigurationSettings runConfig = (RunnerAndConfigurationSettings)value; JLabel result = (JLabel)super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); result.setIcon(runConfig.getConfiguration().getIcon()); result.setText(runConfig.getName()); return result; }