dispatcher.fireModeCancel();
if(dispatcher != null) { dispatcher.fireModeCancel(); }
            public void internalFrameClosing(InternalFrameEvent arg0)            {                dispatcher.fireModeCancel();            }