@Override
      public void eventDispatched(AWTEvent event) {
        // we are interested only in FOCUS_GAINED events
        if (event.getID() == FocusEvent.FOCUS_GAINED) {
          focusOwners.add((Component)event.getSource());
        }
      }
@Override
      public void eventDispatched(AWTEvent event)