| 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.event | Provides for events fired by Swing components. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | DefaultKeyboardFocusManager. dispatchKeyEvent(KeyEvent e)Called by  dispatchEventif no other
 KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or
 if no other KeyEventDispatchers are registered. | 
| boolean | KeyEventDispatcher. dispatchKeyEvent(KeyEvent e)This method is called by the current KeyboardFocusManager requesting
 that this KeyEventDispatcher dispatch the specified event on its behalf. | 
| abstract boolean | KeyboardFocusManager. dispatchKeyEvent(KeyEvent e)Typically this method will be called by  dispatchEventif no
 other KeyEventDispatcher in the dispatcher chain dispatched the
 KeyEvent, or if no other KeyEventDispatchers are registered. | 
| static AWTKeyStroke | AWTKeyStroke. getAWTKeyStrokeForEvent(KeyEvent anEvent)Returns an  AWTKeyStrokewhich represents the
 stroke which generated a givenKeyEvent. | 
| void | AWTEventMulticaster. keyPressed(KeyEvent e)Handles the keyPressed event by invoking the
 keyPressed methods on listener-a and listener-b. | 
| void | AWTEventMulticaster. keyReleased(KeyEvent e)Handles the keyReleased event by invoking the
 keyReleased methods on listener-a and listener-b. | 
| void | AWTEventMulticaster. keyTyped(KeyEvent e)Handles the keyTyped event by invoking the
 keyTyped methods on listener-a and listener-b. | 
| boolean | DefaultKeyboardFocusManager. postProcessKeyEvent(KeyEvent e)This method will be called by  dispatchKeyEvent. | 
| abstract boolean | KeyboardFocusManager. postProcessKeyEvent(KeyEvent e)This method will be called by  dispatchKeyEvent. | 
| boolean | KeyEventPostProcessor. postProcessKeyEvent(KeyEvent e)This method is called by the current KeyboardFocusManager, requesting
 that this KeyEventPostProcessor perform any necessary post-processing
 which should be part of the KeyEvent's final resolution. | 
| void | DefaultKeyboardFocusManager. processKeyEvent(Component focusedComponent,
               KeyEvent e)This method initiates a focus traversal operation if and only if the
 KeyEvent represents a focus traversal key for the specified
 focusedComponent. | 
| abstract void | KeyboardFocusManager. processKeyEvent(Component focusedComponent,
               KeyEvent e)This method initiates a focus traversal operation if and only if the
 KeyEvent represents a focus traversal key for the specified
 focusedComponent. | 
| protected void | Component. processKeyEvent(KeyEvent e)Processes key events occurring on this component by
 dispatching them to any registered
  KeyListenerobjects. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | KeyAdapter. keyPressed(KeyEvent e)Invoked when a key has been pressed. | 
| void | KeyListener. keyPressed(KeyEvent e)Invoked when a key has been pressed. | 
| void | KeyAdapter. keyReleased(KeyEvent e)Invoked when a key has been released. | 
| void | KeyListener. keyReleased(KeyEvent e)Invoked when a key has been released. | 
| void | KeyAdapter. keyTyped(KeyEvent e)Invoked when a key has been typed. | 
| void | KeyListener. keyTyped(KeyEvent e)Invoked when a key has been typed. | 
| Modifier and Type | Method and Description | 
|---|---|
| static KeyStroke | KeyStroke. getKeyStrokeForEvent(KeyEvent anEvent)Returns a KeyStroke which represents the stroke which generated a given
 KeyEvent. | 
| static boolean | SwingUtilities. notifyAction(Action action,
            KeyStroke ks,
            KeyEvent event,
            Object sender,
            int modifiers)Invokes  actionPerformedonactionifactionis enabled (and non-null). | 
| protected void | JComponent. processComponentKeyEvent(KeyEvent e)Processes any key events that the component itself
 recognizes. | 
| protected boolean | JMenuBar. processKeyBinding(KeyStroke ks,
                 KeyEvent e,
                 int condition,
                 boolean pressed)Subclassed to check all the child menus. | 
| protected boolean | JTable. processKeyBinding(KeyStroke ks,
                 KeyEvent e,
                 int condition,
                 boolean pressed) | 
| protected boolean | JComponent. processKeyBinding(KeyStroke ks,
                 KeyEvent e,
                 int condition,
                 boolean pressed)Invoked to process the key bindings for  ksas the result
 of theKeyEvente. | 
| protected boolean | JComboBox. processKeyBinding(KeyStroke ks,
                 KeyEvent e,
                 int condition,
                 boolean pressed)Invoked to process the key bindings for  ksas the result
 of theKeyEvente. | 
| static boolean | SwingUtilities. processKeyBindings(KeyEvent event)Process the key bindings for the  Componentassociated withevent. | 
| protected void | JMenu. processKeyEvent(KeyEvent evt)Processes key stroke events such as mnemonics and accelerators. | 
| protected void | JPopupMenu. processKeyEvent(KeyEvent evt)Processes key stroke events such as mnemonics and accelerators. | 
| protected void | JComponent. processKeyEvent(KeyEvent e)Overrides  processKeyEventto process events. | 
| void | JComboBox. processKeyEvent(KeyEvent e)Handles  KeyEvents, looking for the Tab key. | 
| void | MenuSelectionManager. processKeyEvent(KeyEvent e)When a MenuElement receives an event from a KeyListener, it should never process the event
 directly. | 
| void | JMenuBar. processKeyEvent(KeyEvent e,
               MenuElement[] path,
               MenuSelectionManager manager)Implemented to be a  MenuElement-- does nothing. | 
| void | JPopupMenu. processKeyEvent(KeyEvent e,
               MenuElement[] path,
               MenuSelectionManager manager)Processes a key event forwarded from the
  MenuSelectionManagerand changes the menu selection,
 if necessary, by usingMenuSelectionManager's API. | 
| void | MenuElement. processKeyEvent(KeyEvent event,
               MenuElement[] path,
               MenuSelectionManager manager)Process a key event. | 
| void | JMenuItem. processKeyEvent(KeyEvent e,
               MenuElement[] path,
               MenuSelectionManager manager)Processes a key event forwarded from the
  MenuSelectionManagerand changes the menu selection,
 if necessary, by usingMenuSelectionManager's API. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MenuKeyEventMenuKeyEvent is used to notify interested parties that
 the menu element has received a KeyEvent forwarded to it
 in a menu tree. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | LayerUI. processKeyEvent(KeyEvent e,
               JLayer<? extends V> l)Processes key events occurring on the  JLayeror any of its subcomponents. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BasicComboBoxUI.KeyHandler. keyPressed(KeyEvent e) | 
| void | BasicTableUI.KeyHandler. keyPressed(KeyEvent e) | 
| void | BasicTreeUI.KeyHandler. keyPressed(KeyEvent e) | 
| void | BasicTableUI.KeyHandler. keyReleased(KeyEvent e) | 
| void | BasicComboPopup.InvocationKeyHandler. keyReleased(KeyEvent e) | 
| void | BasicTreeUI.KeyHandler. keyReleased(KeyEvent e) | 
| void | BasicTableUI.KeyHandler. keyTyped(KeyEvent e) | 
| void | BasicTreeUI.KeyHandler. keyTyped(KeyEvent e)Invoked when a key has been typed. | 
 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.