A low-level event which indicates that a component has gained
or lost the keyboard focus.
This low-level event is generated by a component (such as a text field).
The event is passed to every FocusListener
or FocusAdapter object which registered to receive such
events using the component's addFocusListener method.
(FocusAdapter objects implement the
FocusListener interface.) Each such listener object
gets this FocusEvent when the event occurs.
There are two levels of focus change events: permanent and temporary.
Permanent focus change events occur when focus is directly moved
from one component to another, such as through calls to requestFocus()
or as the user uses the Tab key to traverse components.
Temporary focus change events occur when focus is temporarily
gained or lost for a component as the indirect result of another
operation, such as window deactivation or a scrollbar drag. In this
case, the original focus state will automatically be restored once
that operation is finished, or, for the case of window deactivation,
when the window is reactivated. Both permanent and temporary focus
events are delivered using the FOCUS_GAINED and FOCUS_LOST event ids;
the levels may be distinguished in the event using the isTemporary()
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, California, 94303, U.S.A. All Rights Reserved.