NamedFrame.getNamedFrame().removeFrame(frameArg); frameArg.dispose();
if(!frameArg.getGlassPane().isVisible()) { NamedFrame.getNamedFrame().removeFrame(frameArg); frameArg.dispose(); }
      public void windowClosing(WindowEvent e) {	NamedFrame.getNamedFrame().removeFrame(frameArg);	frameArg.dispose();      }