setIcon(new ImageIcon(tile.getScaledImage(zoom)));
Image scaledImage = tile.getScaledImage(zoom); if (scaledImage != null) { setIcon(new ImageIcon(scaledImage)); }
    public Component getListCellRendererComponent(JList list, Object value,            int index,  boolean isSelected, boolean cellHasFocus) {        super.getListCellRendererComponent(                list, value, index, isSelected, cellHasFocus);        Tile tile = (Tile)value;        if (tile != null) {            setIcon(new ImageIcon(tile.getScaledImage(zoom)));            setText("Tile " + tile.getId());        } else {            setIcon(null);            setText("No tile?");        }        return this;    }