@Override public Component getListCellRendererComponent( JList<? extends Object> list, Object value, int index, boolean isSelected, boolean cellHasFocus) { JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); if (((ParticipantListModel) list.getModel()).getAppoinmentLeader().equals(value)) { label.setIcon(ParticipantStatus.leaderIcon); return label; } ParticipantStatus status = ((Participant) value).getParticipantStatus(); if (status == null) { label.setIcon(ParticipantStatus.noStatusIcon); } else { label.setIcon(status.getStatusIcon()); } return label; }