JavaTM 2 Platform
Std. Ed. v1.3.1

Uses of Class
java.awt.event.KeyEvent

Packages that use KeyEvent
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.basic Provides user interface objects built according to the Basic look-and-feel. 
 

Uses of KeyEvent in java.awt
 

Methods in java.awt with parameters of type KeyEvent
protected  void Component.processKeyEvent(KeyEvent e)
          Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
 void AWTEventMulticaster.keyTyped(KeyEvent e)
          Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
 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.
 

Uses of KeyEvent in java.awt.event
 

Methods in java.awt.event with parameters of type KeyEvent
 void KeyListener.keyTyped(KeyEvent e)
          Invoked when a key has been typed.
 void KeyListener.keyPressed(KeyEvent e)
          Invoked when a key has been pressed.
 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 KeyAdapter.keyPressed(KeyEvent e)
          Invoked when a key has been pressed.
 void KeyAdapter.keyReleased(KeyEvent e)
          Invoked when a key has been released.
 

Uses of KeyEvent in javax.swing
 

Methods in javax.swing with parameters of type KeyEvent
protected  void JComponent.processComponentKeyEvent(KeyEvent e)
          Processes any key events that the component itself recognizes.
protected  void JComponent.processKeyEvent(KeyEvent e)
          Overrides processKeyEvent to process events.
protected  boolean JComponent.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
          Invoked to process the key bindings for ks as the result of the KeyEvent e.
protected  void JEditorPane.processComponentKeyEvent(KeyEvent e)
          Overridden to handle processing of tab/shift tab.
protected  void JEditorPane.processKeyEvent(KeyEvent e)
          Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.
static KeyStroke KeyStroke.getKeyStrokeForEvent(KeyEvent anEvent)
          Return a keystroke from an event.
 void JMenuItem.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          Process a key event forwarded from the MenuSelectionManager.
protected  void JMenu.processKeyEvent(KeyEvent e)
          Processes key stroke events for this menu, such as mnemonics and accelerators.
 void MenuSelectionManager.processKeyEvent(KeyEvent e)
          When a MenuElement receives an event from a KeyListener, it should never process the event directly.
 void JPopupMenu.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          This method is required to conform to the MenuElement interface, but it not implemented.
protected  void JApplet.processKeyEvent(KeyEvent e)
           
static boolean SwingUtilities.notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)
          Invokes actionPerformed on action if action is enabled (and non null).
 void JComboBox.processKeyEvent(KeyEvent e)
          Handles KeyEvents, looking for the Tab key.
protected  void JFrame.processKeyEvent(KeyEvent e)
          Processes key events occurring on this component and, if appropriate, passes them on to components in the frame which have registered interest in them.
abstract  void FocusManager.processKeyEvent(Component focusedComponent, KeyEvent anEvent)
          This method is called by JComponents when a key event occurs.
protected  boolean JTable.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
           
 void JMenuBar.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          Implemented to be a MenuElement -- does nothing.
protected  boolean JMenuBar.processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
          Subclassed to check all the child menus.
protected  void JTextArea.processKeyEvent(KeyEvent e)
          Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.
 void MenuElement.processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
          Process a key event.
protected  void JDialog.processKeyEvent(KeyEvent e)
          Processes key events occurring on this component and, if appropriate, passes them on to components in the dialog which have registered interest in them.
 void DefaultFocusManager.processKeyEvent(Component focusedComponent, KeyEvent anEvent)
           
 

Uses of KeyEvent in javax.swing.event
 

Subclasses of KeyEvent in javax.swing.event
 class MenuKeyEvent
          MenuKeyEvent is used to notify interested parties that the menu element has received a KeyEvent forwarded to it in a menu tree.
 

Uses of KeyEvent in javax.swing.plaf.basic
 

Methods in javax.swing.plaf.basic with parameters of type KeyEvent
 void BasicComboPopup.InvocationKeyHandler.keyReleased(KeyEvent e)
           
 void BasicTableUI.KeyHandler.keyPressed(KeyEvent e)
           
 void BasicTableUI.KeyHandler.keyReleased(KeyEvent e)
           
 void BasicTableUI.KeyHandler.keyTyped(KeyEvent e)
           
 void BasicComboBoxUI.KeyHandler.keyPressed(KeyEvent e)
           
 void BasicTreeUI.KeyHandler.keyPressed(KeyEvent e)
           
 void BasicTreeUI.KeyHandler.keyReleased(KeyEvent e)
           
 


JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.