dispatcher.fireModeReactivate();
if(dispatcher != null) { dispatcher.fireModeReactivate(); }
    private void init()    {        gradPanel = new HeatMapGradientUI();        statusPanel = new HeatMapStatusUI();        modeBar = new HeatMapModeBar();        scaleBar = new HeatMapScaleBar();                addInternalFrameListener(new InternalFrameAdapter()        {            public void internalFrameClosing(InternalFrameEvent arg0)            {                dispatcher.fireModeCancel();            }                        public void internalFrameActivated(InternalFrameEvent arg0)            {                dispatcher.fireModeReactivate();            }        });    }