| 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.accessibility | Defines a contract between user-interface components and an assistive technology
that provides access to those 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.basic | Provides user interface objects built according to the
Basic look and feel. | 
| javax.swing.plaf.metal | Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel. | 
| javax.swing.table | Provides classes and interfaces for dealing with
 javax.swing.JTable. | 
| javax.swing.text | Provides classes and interfaces that deal with editable
and noneditable text components. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AWTEventMulticasterAWTEventMulticasterimplements efficient and thread-safe multi-cast
 event dispatching for the AWT events defined in thejava.awt.eventpackage. | 
| protected class  | Component.AccessibleAWTComponent.AccessibleAWTFocusHandlerFire PropertyChange listener, if one is registered,
 when focus events happen | 
| Modifier and Type | Field and Description | 
|---|---|
| protected FocusListener | Component.AccessibleAWTComponent. accessibleAWTFocusHandler | 
| Modifier and Type | Method and Description | 
|---|---|
| static FocusListener | AWTEventMulticaster. add(FocusListener a,
   FocusListener b)Adds focus-listener-a with focus-listener-b and
 returns the resulting multicast listener. | 
| FocusListener[] | Component. getFocusListeners()Returns an array of all the focus listeners
 registered on this component. | 
| static FocusListener | AWTEventMulticaster. remove(FocusListener l,
      FocusListener oldl)Removes the old focus-listener from focus-listener-l and
 returns the resulting multicast listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| static FocusListener | AWTEventMulticaster. add(FocusListener a,
   FocusListener b)Adds focus-listener-a with focus-listener-b and
 returns the resulting multicast listener. | 
| void | List.AccessibleAWTList.AccessibleAWTListChild. addFocusListener(FocusListener l)Adds the specified focus listener to receive focus events from
 this component. | 
| void | MenuComponent.AccessibleAWTMenuComponent. addFocusListener(FocusListener l)Adds the specified focus listener to receive focus events from this
 component. | 
| void | Component. addFocusListener(FocusListener l)Adds the specified focus listener to receive focus events from
 this component when this component gains input focus. | 
| void | Component.AccessibleAWTComponent. addFocusListener(FocusListener l)Adds the specified focus listener to receive focus events from this
 component. | 
| static FocusListener | AWTEventMulticaster. remove(FocusListener l,
      FocusListener oldl)Removes the old focus-listener from focus-listener-l and
 returns the resulting multicast listener. | 
| void | List.AccessibleAWTList.AccessibleAWTListChild. removeFocusListener(FocusListener l)Removes the specified focus listener so it no longer receives
 focus events from this component. | 
| void | MenuComponent.AccessibleAWTMenuComponent. removeFocusListener(FocusListener l)Removes the specified focus listener so it no longer receives focus
 events from this component. | 
| void | Component. removeFocusListener(FocusListener l)Removes the specified focus listener so that it no longer
 receives focus events from this component. | 
| void | Component.AccessibleAWTComponent. removeFocusListener(FocusListener l)Removes the specified focus listener so it no longer receives focus
 events from this component. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | FocusAdapterAn abstract adapter class for receiving keyboard focus events. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | AccessibleComponent. addFocusListener(FocusListener l)Adds the specified focus listener to receive focus events from this
 component. | 
| void | AccessibleComponent. removeFocusListener(FocusListener l)Removes the specified focus listener so it no longer receives focus
 events from this component. | 
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | JComponent.AccessibleJComponent.AccessibleFocusHandlerFire PropertyChange listener, if one is registered,
 when focus events happen | 
| Modifier and Type | Field and Description | 
|---|---|
| protected FocusListener | JComponent.AccessibleJComponent. accessibleFocusHandlerDeprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JTree.AccessibleJTree.AccessibleJTreeNode. addFocusListener(FocusListener l) | 
| void | JList.AccessibleJList.AccessibleJListChild. addFocusListener(FocusListener l) | 
| void | JTable.AccessibleJTable.AccessibleJTableCell. addFocusListener(FocusListener l) | 
| void | JTree.AccessibleJTree.AccessibleJTreeNode. removeFocusListener(FocusListener l) | 
| void | JList.AccessibleJList.AccessibleJListChild. removeFocusListener(FocusListener l) | 
| void | JTable.AccessibleJTable.AccessibleJTableCell. removeFocusListener(FocusListener l) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicButtonListenerButton Listener | 
| class  | BasicComboBoxEditorThe default editor for editable combo boxes. | 
| static class  | BasicComboBoxEditor.UIResourceA subclass of BasicComboBoxEditor that implements UIResource. | 
| class  | BasicComboBoxUI.FocusHandlerThis listener hides the popup when the focus is lost. | 
| class  | BasicListUI.FocusHandlerThis class should be treated as a "protected" inner class. | 
| class  | BasicSliderUI.FocusHandlerFocus-change listener. | 
| class  | BasicSplitPaneUI.FocusHandlerImplementation of the FocusListener that the JSplitPane UI uses. | 
| class  | BasicTabbedPaneUI.FocusHandlerThis class should be treated as a "protected" inner class. | 
| class  | BasicTableUI.FocusHandlerThis class should be treated as a "protected" inner class. | 
| static class  | BasicTextUI.BasicCaret | 
| protected class  | BasicToolBarUI.ToolBarFocusListener | 
| class  | BasicTreeUI.FocusHandlerRepaints the lead selection row when focus is lost/gained. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected FocusListener | BasicTableUI. focusListener | 
| protected FocusListener | BasicListUI. focusListener | 
| protected FocusListener | BasicTabbedPaneUI. focusListener | 
| protected FocusListener | BasicSplitPaneUI. focusListenerInstance of the FocusListener for this JSplitPane. | 
| protected FocusListener | BasicSliderUI. focusListener | 
| protected FocusListener | BasicComboBoxUI. focusListenerThis protected field is implementation specific. | 
| protected FocusListener | BasicToolBarUI. toolBarFocusListener | 
| Modifier and Type | Method and Description | 
|---|---|
| protected FocusListener | BasicTableUI. createFocusListener()Creates the focus listener for handling keyboard navigation in the JTable. | 
| protected FocusListener | BasicListUI. createFocusListener() | 
| protected FocusListener | BasicTreeUI. createFocusListener()Creates a listener that is responsible for updating the display
 when focus is lost/gained. | 
| protected FocusListener | BasicTabbedPaneUI. createFocusListener() | 
| protected FocusListener | BasicSplitPaneUI. createFocusListener()Creates a FocusListener for the JSplitPane UI. | 
| protected FocusListener | BasicComboBoxUI. createFocusListener()Creates a  FocusListenerwhich will be added to the combo box. | 
| protected FocusListener | BasicSliderUI. createFocusListener(JSlider slider) | 
| protected FocusListener | BasicToolBarUI. createToolBarFocusListener() | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MetalComboBoxEditorThe default editor for Metal editable combo boxes | 
| static class  | MetalComboBoxEditor.UIResourceA subclass of BasicComboBoxEditor that implements UIResource. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. addFocusListener(FocusListener l) | 
| void | JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. removeFocusListener(FocusListener l) | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | DefaultCaretA default implementation of Caret. | 
 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.