processEvent (e);
if (e.id != PaintEvent.PAINT && e.id != PaintEvent.UPDATE) processEvent(e);
  void dispatchEventImpl (AWTEvent e)  {    Event oldEvent = translateEvent (e);    if (oldEvent != null)      postEvent (oldEvent);    if (eventTypeEnabled (e.id))      {        // the trick we use to communicate between dispatch and redispatch        // is to have KeyboardFocusManager.redispatch synchronize on the        // object itself. we then do not redispatch to KeyboardFocusManager        // if we are already holding the lock.        if (! Thread.holdsLock(e))          {            switch (e.id)              {              case WindowEvent.WINDOW_GAINED_FOCUS:              case WindowEvent.WINDOW_LOST_FOCUS:              case KeyEvent.KEY_PRESSED:              case KeyEvent.KEY_RELEASED:              case KeyEvent.KEY_TYPED:              case FocusEvent.FOCUS_GAINED:              case FocusEvent.FOCUS_LOST:                if (KeyboardFocusManager                    .getCurrentKeyboardFocusManager()                    .dispatchEvent(e))                    return;              case MouseEvent.MOUSE_PRESSED:                if (isLightweight())                  requestFocus();                break;              }          }        processEvent (e);      }  }