d.show();
d.setVisible(true);
    private void changeImage() {        if (currentTile == null) {            return;        }        if (tileset.usesSharedImages()) {            TileImageDialog d = new TileImageDialog(this, tileset,                currentTile.getImageId(), currentTile.getImageOrientation());            d.show();            if (d.getImageId() >= 0) {                currentTile.setImage(d.getImageId());                currentTile.setImageOrientation(d.getImageOrientation());            }        } else {            Image img = loadImage();            if (img != null) {                currentTile.setImage(img);            }        }    }