Uses of Interface java.awt.event.FocusListener (Java SE 26 & JDK 26)
Description: use: module: java.desktop, package: java.awt.event, interface: FocusListener

# Uses of Interface
java.awt.event.FocusListener

Packages that use FocusListener
Package
Description
com.sun.java.accessibility.util
Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.
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.

- ## Uses of FocusListener in com.sun.java.accessibility.util

  Methods in com.sun.java.accessibility.util with parameters of type FocusListener
  Modifier and Type
  Method
  Description
  `static void`
  AWTEventMonitor.`addFocusListener(FocusListener l)`
  Adds the specified listener to receive all `FOCUS` events on each component instance in the Java Virtual Machine when they occur.
  `void`
  Translator.`addFocusListener(FocusListener l)`
  Adds the specified `FocusListener` to receive focus events from this component.
  `static void`
  AWTEventMonitor.`removeFocusListener(FocusListener l)`
  Removes the specified listener so it no longer receives `FOCUS` events when they occur.
  `void`
  Translator.`removeFocusListener(FocusListener l)`
  Removes the specified focus listener so it no longer receives focus events from this component.

- ## Uses of FocusListener in java.awt

  Classes in java.awt that implement FocusListener
  Modifier and Type
  Class
  Description
  `class`
  `AWTEventMulticaster`
  `AWTEventMulticaster` implements efficient and thread-safe multi-cast event dispatching for the AWT events defined in the `java.awt.event` package.
  `protected class`
  `Component.AccessibleAWTComponent.AccessibleAWTFocusHandler`
  Fire PropertyChange listener, if one is registered, when focus events happen
  Fields in java.awt declared as FocusListener
  Modifier and Type
  Field
  Description
  `protected FocusListener`
  Component.AccessibleAWTComponent.`accessibleAWTFocusHandler`
  A listener to track focus events and convert them to PropertyChange events.
  Methods in java.awt that return FocusListener
  Modifier and Type
  Method
  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.
  Methods in java.awt with parameters of type FocusListener
  Modifier and Type
  Method
  Description
  `static FocusListener`
  AWTEventMulticaster.`add(FocusListener a, FocusListener b)`
  Adds focus-listener-a with focus-listener-b and returns the resulting multicast listener.
  `void`
  Component.AccessibleAWTComponent.`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`
  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.
  `static FocusListener`
  AWTEventMulticaster.`remove(FocusListener l, FocusListener oldl)`
  Removes the old focus-listener from focus-listener-l and returns the resulting multicast listener.
  `void`
  Component.AccessibleAWTComponent.`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`
  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.

- ## Uses of FocusListener in java.awt.event

  Classes in java.awt.event that implement FocusListener
  Modifier and Type
  Class
  Description
  `class`
  `FocusAdapter`
  An abstract adapter class for receiving keyboard focus events.

- ## Uses of FocusListener in javax.accessibility

  Methods in javax.accessibility with parameters of type FocusListener
  Modifier and Type
  Method
  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.

- ## Uses of FocusListener in javax.swing

  Classes in javax.swing that implement FocusListener
  Modifier and Type
  Class
  Description
  `protected class`
  `JComponent.AccessibleJComponent.AccessibleFocusHandler`
  Deprecated.
  This class is no longer used or needed.
  Fields in javax.swing declared as FocusListener
  Modifier and Type
  Field
  Description
  `protected FocusListener`
  JComponent.AccessibleJComponent.`accessibleFocusHandler`
  Deprecated.
  Methods in javax.swing with parameters of type FocusListener
  Modifier and Type
  Method
  Description
  `void`
  JList.AccessibleJList.AccessibleJListChild.`addFocusListener(FocusListener l)`
  `void`
  JTable.AccessibleJTable.AccessibleJTableCell.`addFocusListener(FocusListener l)`
  `void`
  JTree.AccessibleJTree.AccessibleJTreeNode.`addFocusListener(FocusListener l)`
  `void`
  JList.AccessibleJList.AccessibleJListChild.`removeFocusListener(FocusListener l)`
  `void`
  JTable.AccessibleJTable.AccessibleJTableCell.`removeFocusListener(FocusListener l)`
  `void`
  JTree.AccessibleJTree.AccessibleJTreeNode.`removeFocusListener(FocusListener l)`

- ## Uses of FocusListener in javax.swing.plaf.basic

  Classes in javax.swing.plaf.basic that implement FocusListener
  Modifier and Type
  Class
  Description
  `class`
  `BasicButtonListener`
  Button Listener
  `class`
  `BasicComboBoxEditor`
  The default editor for editable combo boxes.
  `static class`
  `BasicComboBoxEditor.UIResource`
  A subclass of BasicComboBoxEditor that implements UIResource.
  `class`
  `BasicComboBoxUI.FocusHandler`
  This listener hides the popup when the focus is lost.
  `class`
  `BasicListUI.FocusHandler`
  This class should be treated as a "protected" inner class.
  `class`
  `BasicSliderUI.FocusHandler`
  Focus-change listener.
  `class`
  `BasicSplitPaneUI.FocusHandler`
  Implementation of the FocusListener that the JSplitPane UI uses.
  `class`
  `BasicTabbedPaneUI.FocusHandler`
  This class should be treated as a "protected" inner class.
  `class`
  `BasicTableUI.FocusHandler`
  This class should be treated as a "protected" inner class.
  `static class`
  `BasicTextUI.BasicCaret`
  Default implementation of the interface `Caret`.
  `protected class`
  `BasicToolBarUI.ToolBarFocusListener`
  The class listens for focus events.
  `class`
  `BasicTreeUI.FocusHandler`
  Repaints the lead selection row when focus is lost/gained.
  Fields in javax.swing.plaf.basic declared as FocusListener
  Modifier and Type
  Field
  Description
  `protected FocusListener`
  BasicComboBoxUI.`focusListener`
  This protected field is implementation specific.
  `protected FocusListener`
  BasicListUI.`focusListener`
  `FocusListener` that attached to `JList`.
  `protected FocusListener`
  BasicSliderUI.`focusListener`
  Focus listener
  `protected FocusListener`
  BasicSplitPaneUI.`focusListener`
  Instance of the FocusListener for this JSplitPane.
  `protected FocusListener`
  BasicTabbedPaneUI.`focusListener`
  Focus change listener
  `protected FocusListener`
  BasicTableUI.`focusListener`
  `FocusListener` that are attached to the `JTable`.
  `protected FocusListener`
  BasicToolBarUI.`toolBarFocusListener`
  The instance of a `FocusListener`.
  Methods in javax.swing.plaf.basic that return FocusListener
  Modifier and Type
  Method
  Description
  `protected FocusListener`
  BasicComboBoxUI.`createFocusListener()`
  Creates a `FocusListener` which will be added to the combo box.
  `protected FocusListener`
  BasicListUI.`createFocusListener()`
  Returns an instance of `FocusListener`.
  `protected FocusListener`
  BasicSliderUI.`createFocusListener(JSlider slider)`
  Creates a focus listener.
  `protected FocusListener`
  BasicSplitPaneUI.`createFocusListener()`
  Creates a `FocusListener` for the `JSplitPane` UI.
  `protected FocusListener`
  BasicTabbedPaneUI.`createFocusListener()`
  Creates a focus listener.
  `protected FocusListener`
  BasicTableUI.`createFocusListener()`
  Creates the focus listener for handling keyboard navigation in the `JTable`.
  `protected FocusListener`
  BasicTreeUI.`createFocusListener()`
  Creates a listener that is responsible for updating the display when focus is lost/gained.
  `protected FocusListener`
  BasicToolBarUI.`createToolBarFocusListener()`
  Returns an instance of `FocusListener`.

- ## Uses of FocusListener in javax.swing.plaf.metal

  Classes in javax.swing.plaf.metal that implement FocusListener
  Modifier and Type
  Class
  Description
  `class`
  `MetalComboBoxEditor`
  The default editor for Metal editable combo boxes
  `static class`
  `MetalComboBoxEditor.UIResource`
  A subclass of BasicComboBoxEditor that implements UIResource.

- ## Uses of FocusListener in javax.swing.table

  Methods in javax.swing.table with parameters of type FocusListener
  Modifier and Type
  Method
  Description
  `void`
  JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.`addFocusListener(FocusListener l)`
  `void`
  JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.`removeFocusListener(FocusListener l)`

- ## Uses of FocusListener in javax.swing.text

  Classes in javax.swing.text that implement FocusListener
  Modifier and Type
  Class
  Description
  `class`
  `DefaultCaret`
  A default implementation of Caret.