| Package | Description | 
|---|---|
| java.awt | 
 Contains all of the classes for creating user
interfaces and for painting graphics and images. 
 | 
| java.awt.event | 
 Provides interfaces and classes for dealing with different
types of events fired by AWT components. 
 | 
| javax.swing | 
 Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. 
 | 
| javax.swing.plaf | 
 Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities. 
 | 
| javax.swing.plaf.basic | 
 Provides user interface objects built according to the
Basic look and feel. 
 | 
| javax.swing.text | 
 Provides classes and interfaces that deal with editable
and noneditable text components. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusGained(FocusEvent event)  | 
void | 
AWTEventMulticaster.focusGained(FocusEvent e)
Handles the focusGained event by invoking the
 focusGained methods on listener-a and listener-b. 
 | 
void | 
Component.AccessibleAWTComponent.AccessibleAWTFocusHandler.focusLost(FocusEvent event)  | 
void | 
AWTEventMulticaster.focusLost(FocusEvent e)
Handles the focusLost event by invoking the
 focusLost methods on listener-a and listener-b. 
 | 
protected void | 
Component.processFocusEvent(FocusEvent e)
Processes focus events occurring on this component by
 dispatching them to any registered
  
FocusListener objects. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
FocusListener.focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. 
 | 
void | 
FocusAdapter.focusGained(FocusEvent e)
Invoked when a component gains the keyboard focus. 
 | 
void | 
FocusListener.focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. 
 | 
void | 
FocusAdapter.focusLost(FocusEvent e)
Invoked when a component loses the keyboard focus. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
JComponent.AccessibleJComponent.AccessibleFocusHandler.focusGained(FocusEvent event)  | 
void | 
JComponent.AccessibleJComponent.AccessibleFocusHandler.focusLost(FocusEvent event)  | 
protected void | 
JFormattedTextField.processFocusEvent(FocusEvent e)
Processes any focus events, such as
  
FocusEvent.FOCUS_GAINED or
 FocusEvent.FOCUS_LOST. | 
protected void | 
JPopupMenu.processFocusEvent(FocusEvent evt)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
LayerUI.processFocusEvent(FocusEvent e,
                 JLayer<? extends V> l)
Processes focus events occurring on the  
JLayer
 or any of its subcomponents. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
BasicTableUI.FocusHandler.focusGained(FocusEvent e)  | 
void | 
BasicButtonListener.focusGained(FocusEvent e)  | 
void | 
BasicTreeUI.FocusHandler.focusGained(FocusEvent e)
Invoked when focus is activated on the tree we're in, redraws the
 lead row. 
 | 
void | 
BasicComboBoxEditor.focusGained(FocusEvent e)  | 
void | 
BasicTabbedPaneUI.FocusHandler.focusGained(FocusEvent e)  | 
void | 
BasicToolBarUI.ToolBarFocusListener.focusGained(FocusEvent e)  | 
void | 
BasicSliderUI.FocusHandler.focusGained(FocusEvent e)  | 
void | 
BasicListUI.FocusHandler.focusGained(FocusEvent e)  | 
void | 
BasicSplitPaneUI.FocusHandler.focusGained(FocusEvent ev)  | 
void | 
BasicComboBoxUI.FocusHandler.focusGained(FocusEvent e)  | 
void | 
BasicTableUI.FocusHandler.focusLost(FocusEvent e)  | 
void | 
BasicButtonListener.focusLost(FocusEvent e)  | 
void | 
BasicTreeUI.FocusHandler.focusLost(FocusEvent e)
Invoked when focus is activated on the tree we're in, redraws the
 lead row. 
 | 
void | 
BasicComboBoxEditor.focusLost(FocusEvent e)  | 
void | 
BasicTabbedPaneUI.FocusHandler.focusLost(FocusEvent e)  | 
void | 
BasicToolBarUI.ToolBarFocusListener.focusLost(FocusEvent e)  | 
void | 
BasicSliderUI.FocusHandler.focusLost(FocusEvent e)  | 
void | 
BasicListUI.FocusHandler.focusLost(FocusEvent e)  | 
void | 
BasicSplitPaneUI.FocusHandler.focusLost(FocusEvent ev)  | 
void | 
BasicComboBoxUI.FocusHandler.focusLost(FocusEvent e)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
DefaultCaret.focusGained(FocusEvent e)
Called when the component containing the caret gains
 focus. 
 | 
void | 
DefaultCaret.focusLost(FocusEvent e)
Called when the component containing the caret loses
 focus. 
 | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.