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