if (Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)) { frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED)); frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_LOST)); } else { frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_LOST_FOCUS)); frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED)); } }
if (parent.isDisposed()) return; final Rectangle clientArea = parent.getClientArea(); EventQueue.invokeLater(new Runnable () { public void run () { frame.setSize (clientArea.width, clientArea.height); frame.validate (); } }); }
						public void run () {							if (Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)) {								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED));								frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_LOST));							} else {								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_LOST_FOCUS));								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED));							}						}