Component (final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { Component component = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); Charset charset = (Charset)value; //noinspection HardCodedStringLiteral setText(charset.displayName()); return component; }