@Override
  protected void componentUnregistered(Component component, @Nullable AWTEvent cause) {
    if (getFocusedComponent() == component) {
      setFocusedComponentImpl(null, cause);
    }
  }
@Override
  protected void componentUnregistered(Component component, @Nullable AWTEvent cause)