frame.dispose ();
final Rectangle rect = parent.getClientArea (); frame.getToolkit ().getSystemEventQueue ().invokeLater(new Runnable () { public void run () { frame.setSize (rect.width, rect.height); frame.validate (); } });
		public void handleEvent (Event e) {			frame.dispose ();		}