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