public void handleEvent (Event e) {
public void handleEvent (Event event) { parent.setVisible(false);
public static Panel new_Panel (final Composite parent) {	int handle = parent.handle;	final WEmbeddedFrame frame = new WEmbeddedFrame (handle);	Panel panel = new Panel ();	frame.add (panel);	parent.addListener (SWT.Activate, new Listener () {		public void handleEvent (Event e) {			frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ACTIVATED));			frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_GAINED));		}	});	parent.addListener (SWT.Deactivate, new Listener () {		public void handleEvent (Event e) {			frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED));			frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_LOST));		}	});	parent.addListener (SWT.Resize, new Listener () {		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 ();				}			});		}	});	parent.addListener (SWT.Dispose, new Listener () {		public void handleEvent (Event e) {			frame.dispose ();		}	});	return panel;}