Tile tile = (Tile)value;
tile = (Tile)value;
	public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {				super.getListCellRendererComponent(                list, value, index, isSelected, cellHasFocus);				if(value != null && index>=0) {			if(value.getClass().toString().equals(Tile.class.toString())) {				Tile tile = (Tile)value;				if (tile != null) {					setIcon(tileImages[index]);					setText("Tile " + tile.getId());				} else {					setIcon(null);					setText("No tile");				}			} else {				//Assume it's a set				TileSet ts = (TileSet)value;				if(ts != null) {					setIcon(new ImageIcon(setImage));					setText("Tileset " + ts.getName());				} else {					setIcon(null);					setText("");				}			}						// Draw the correct colors and font			if (isSelected) {				// Set the color and font for a selected item				setBackground(Color.blue);				setForeground(Color.black);				setFont(new Font("Roman", Font.BOLD, 12));			} else {				// Set the color and font for an unselected item				setBackground(Color.white);				setForeground(Color.black);				setFont(new Font("Roman", Font.PLAIN, 12 ));			}		}		return this;	}