w.hide();
w.setVisible(false);
    void addWindowCloseListener(Window win) {	SecurityManager sm = System.getSecurityManager();	boolean doExit = true;	if (sm != null) {	    try {		sm.checkExit(0);	    } catch (SecurityException e) {		doExit = false;	    }	}	final boolean _doExit = doExit;	win.addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent winEvent) {		Window w = winEvent.getWindow();		w.hide();		try {		    w.dispose();		} catch (IllegalStateException e) {}		if (_doExit) {		    System.exit(0);		}	    }	});    }