if (tilePaletteDialog != null) { tilePaletteDialog.setMap(currentMap); }
    public void mapChanged(MapChangedEvent e) {        if (e.getMap() == currentMap) {            mapScrollPane.setViewportView(mapView);            updateLayerTable();        }    }