< prev index next >

src/java.desktop/share/classes/java/awt/FocusTraversalPolicy.java

Print this page

        

*** 145,155 **** public abstract Component getDefaultComponent(Container aContainer); /** * Returns the Component that should receive the focus when a Window is * made visible for the first time. Once the Window has been made visible ! * by a call to <code>show()</code> or <code>setVisible(true)</code>, the * initial Component will not be used again. Instead, if the Window loses * and subsequently regains focus, or is made invisible or undisplayable * and subsequently made visible and displayable, the Window's most * recently focused Component will become the focus owner. The default * implementation of this method returns the default Component. --- 145,155 ---- public abstract Component getDefaultComponent(Container aContainer); /** * Returns the Component that should receive the focus when a Window is * made visible for the first time. Once the Window has been made visible ! * by a call to {@code show()} or {@code setVisible(true)}, the * initial Component will not be used again. Instead, if the Window loses * and subsequently regains focus, or is made invisible or undisplayable * and subsequently made visible and displayable, the Window's most * recently focused Component will become the focus owner. The default * implementation of this method returns the default Component.
< prev index next >