pressCount = 0; }
  boolean handleEvent(AWTEvent e)  {    if (e instanceof MouseEvent)      {        MouseEvent me = (MouseEvent) e;        // Make the LightWeightDispatcher reentrant. This is necessary when        // a lightweight component does its own modal event queue.        Component mouseEventTarget = acquireComponentForMouseEvent(me);        // Avoid dispatching ENTERED and EXITED events twice.        if (mouseEventTarget != null            && mouseEventTarget.isShowing()            && e.getID() != MouseEvent.MOUSE_ENTERED            && e.getID() != MouseEvent.MOUSE_EXITED)          {            switch (e.getID())              {                case MouseEvent.MOUSE_PRESSED:                  if (pressCount++ == 0)                    pressedComponent = mouseEventTarget;                  break;                case MouseEvent.MOUSE_RELEASED:                  // Clear our memory of the original PRESSED event, only if                  // we're not expecting a CLICKED event after this. If                  // there is a CLICKED event after this, it will do clean up.                  if (--pressCount == 0                      && mouseEventTarget != pressedComponent)                    pressedComponent = null;                  break;              }            MouseEvent newEvt =              AWTUtilities.convertMouseEvent(nativeContainer, me,                                             mouseEventTarget);            mouseEventTarget.dispatchEvent(newEvt);              if (newEvt.isConsumed())                e.consume();          }      }        return e.isConsumed();  }