frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ACTIVATED)); frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_GAINED));
frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEACTIVATED)); frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_LOST));
						public void run () {							if (Library.JAVA_VERSION < Library.JAVA_VERSION(1, 4, 0)) {								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ACTIVATED));								frame.dispatchEvent (new FocusEvent (frame, FocusEvent.FOCUS_GAINED));							} else {								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ACTIVATED));								frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_GAINED_FOCUS));							}						}