< prev index next >
src/java.desktop/share/classes/java/awt/event/FocusListener.java
Print this page
*** 30,46 ****
/**
* The listener interface for receiving keyboard focus events on
* a component.
* The class that is interested in processing a focus event
* either implements this interface (and all the methods it
! * contains) or extends the abstract <code>FocusAdapter</code> class
* (overriding only the methods of interest).
* The listener object created from that class is then registered with a
! * component using the component's <code>addFocusListener</code>
* method. When the component gains or loses the keyboard focus,
* the relevant method in the listener object
! * is invoked, and the <code>FocusEvent</code> is passed to it.
*
* @see FocusAdapter
* @see FocusEvent
* @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/focuslistener.html">Tutorial: Writing a Focus Listener</a>
*
--- 30,46 ----
/**
* The listener interface for receiving keyboard focus events on
* a component.
* The class that is interested in processing a focus event
* either implements this interface (and all the methods it
! * contains) or extends the abstract {@code FocusAdapter} class
* (overriding only the methods of interest).
* The listener object created from that class is then registered with a
! * component using the component's {@code addFocusListener}
* method. When the component gains or loses the keyboard focus,
* the relevant method in the listener object
! * is invoked, and the {@code FocusEvent} is passed to it.
*
* @see FocusAdapter
* @see FocusEvent
* @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/focuslistener.html">Tutorial: Writing a Focus Listener</a>
*
< prev index next >