try { return getGlobalPermanentFocusOwner(); } catch (SecurityException e) { return null; }
return (Component) getObject (currentPermanentFocusOwners);
  public Component getPermanentFocusOwner()  {    // XXX Need an easy way to test if this thread is in the context of the    // global focus owner, to avoid creating the exception in the first place.    try      {        return getGlobalPermanentFocusOwner();      }    catch (SecurityException e)      {        return null;      }  }