746 |
if (activeWindow == this) |
if (activeWindow == this) |
747 |
return manager.getFocusOwner (); |
return manager.getFocusOwner (); |
748 |
else |
else |
749 |
return windowFocusOwner; |
return null; |
750 |
|
} |
751 |
|
|
752 |
|
/** |
753 |
|
* Returns the child component of this window that would receive |
754 |
|
* focus if this window were to become focused. If the window |
755 |
|
* already has the top-level focus, then this method returns the |
756 |
|
* same component as getFocusOwner. If no child component has |
757 |
|
* requested focus within the window, then the initial focus owner |
758 |
|
* is returned. If this is a non-focusable window, this method |
759 |
|
* returns null. |
760 |
|
* |
761 |
|
* @return the child component of this window that most recently had |
762 |
|
* the focus, or <code>null</code> |
763 |
|
* @since 1.4 |
764 |
|
*/ |
765 |
|
public Component getMostRecentFocusOwner () |
766 |
|
{ |
767 |
|
return windowFocusOwner; |
768 |
} |
} |
769 |
|
|
770 |
/** |
/** |