throw new Error("not implemented");
if (e instanceof WindowEvent) { Window target = (Window) e.getSource ();  if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) setGlobalFocusedWindow (target); else if (e.id != WindowEvent.WINDOW_LOST_FOCUS && e.id != WindowEvent.WINDOW_DEACTIVATED) return false;  target.dispatchEvent (e); return true; } else if (e instanceof FocusEvent) { Component target = (Component) e.getSource ();  if (e.id == FocusEvent.FOCUS_GAINED && !(target instanceof Window)) { if (((FocusEvent) e).isTemporary ()) setGlobalFocusOwner (target); else setGlobalPermanentFocusOwner (target); }  if (!(target instanceof Window)) target.dispatchEvent (e);  return true; } else if (e instanceof KeyEvent) {   Iterator i = getKeyEventDispatchers().iterator();  while (i.hasNext ()) { KeyEventDispatcher dispatcher = (KeyEventDispatcher) i.next (); if (dispatcher.dispatchKeyEvent ((KeyEvent) e)) return true; }    Component focusOwner = getGlobalPermanentFocusOwner (); processKeyEvent (focusOwner, (KeyEvent) e);  if (e.isConsumed ()) return true;  if (enqueueKeyEvent ((KeyEvent) e))  return true; else    return dispatchKeyEvent ((KeyEvent) e); }  return false;
  public boolean dispatchEvent(AWTEvent e)  {    throw new Error("not implemented");  }