final File file = (File) value;
File file = (File) value;
    public Component getListCellRendererComponent(JList list, Object value,            int index, boolean isSelected, boolean cellHasFocus) {        super.getListCellRendererComponent(list, value, index, isSelected,                cellHasFocus);        if (value == null)        	return this;                final File file = (File) value;        setText(file.getName() + (file.isDirectory() ? "/" : ""));        if (!simple) {            setVerticalTextPosition(SwingConstants.BOTTOM);            setHorizontalTextPosition(SwingConstants.CENTER);            setHorizontalAlignment(SwingConstants.CENTER);            setIcon(ImagesMap.get(file));        } else            setIcon(ImagesMap.get16x16(file));        return this;    }