Component (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { //noinspection HardCodedStringLiteral setText((value == null) ? "" : value.toString()); setFont(UIUtil.getListFont()); setIcon(null); myIsSelected = isSelected; myHasFocus = cellHasFocus; return this; }