pseudoMB.setLayers(new LayerEvent( this, LayerEvent.REPLACE, new Layer [] { layer }));
currentLayer.removeNotify(); setPaletteTab(targetIndex); remove(currentLayer);   add(layer); layer.addNotify(); checkMouseMode();
    public void projectionChanged(ProjectionEvent ev) {	Projection proj = ev.getProjection();	boolean changed = setTargetIndex(proj.getScale());	// get the appropriate layer and invoke projectionChanged	Layer layer = getAppropriateLayer();	if (changed) {	    pseudoMB.setLayers(new LayerEvent(			this, LayerEvent.REPLACE, new Layer [] { layer }));	}	fireStatusUpdate(LayerStatusEvent.START_WORKING);	layer.projectionChanged(ev);    }