| 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.plaf.basic | Provides user interface objects built according to the
Basic look and feel. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| static KeyListener | AWTEventMulticaster. add(KeyListener a,
   KeyListener b)Adds key-listener-a with key-listener-b and
 returns the resulting multicast listener. | 
| KeyListener[] | Component. getKeyListeners()Returns an array of all the key listeners
 registered on this component. | 
| static KeyListener | AWTEventMulticaster. remove(KeyListener l,
      KeyListener oldl)Removes the old key-listener from key-listener-l and
 returns the resulting multicast listener. | 
| Modifier and Type | Method and Description | 
|---|---|
| static KeyListener | AWTEventMulticaster. add(KeyListener a,
   KeyListener b)Adds key-listener-a with key-listener-b and
 returns the resulting multicast listener. | 
| void | Component. addKeyListener(KeyListener l)Adds the specified key listener to receive key events from
 this component. | 
| static KeyListener | AWTEventMulticaster. remove(KeyListener l,
      KeyListener oldl)Removes the old key-listener from key-listener-l and
 returns the resulting multicast listener. | 
| void | Component. removeKeyListener(KeyListener l)Removes the specified key listener so that it no longer
 receives key events from this component. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | KeyAdapterAn abstract adapter class for receiving keyboard events. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicComboBoxUI.KeyHandlerThis listener checks to see if the key event isn't a navigation key. | 
| class  | BasicComboPopup.InvocationKeyHandlerAs of Java 2 platform v 1.4, this class is now obsolete and is only included for
 backwards API compatibility. | 
| class  | BasicTableUI.KeyHandlerThis class should be treated as a "protected" inner class. | 
| class  | BasicTreeUI.KeyHandlerThis is used to get multiple key down events to appropriately generate
 events. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected KeyListener | BasicTableUI. keyListener | 
| protected KeyListener | BasicComboPopup. keyListenerThis protected field is implementation specific. | 
| protected KeyListener | BasicComboBoxUI. keyListenerThis protected field is implementation specific. | 
| protected KeyListener | BasicComboBoxUI. popupKeyListener | 
| Modifier and Type | Method and Description | 
|---|---|
| protected KeyListener | BasicTableUI. createKeyListener()Creates the key listener for handling keyboard navigation in the JTable. | 
| protected KeyListener | BasicTreeUI. createKeyListener()Creates the listener reponsible for getting key events from
 the tree. | 
| protected KeyListener | BasicComboPopup. createKeyListener()Creates the key listener that will be added to the combo box. | 
| protected KeyListener | BasicComboBoxUI. createKeyListener()Creates a  KeyListenerwhich will be added to the
 combo box. | 
| KeyListener | BasicComboPopup. getKeyListener()Implementation of ComboPopup.getKeyListener(). | 
| KeyListener | ComboPopup. getKeyListener()Returns a key listener that will be added to the combo box or null. | 
 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.