站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Java(TM) 2 Platform, Standard Edition, v1.2.2 API Specification: Uses of Class java.awt.event.KeyEvent - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

JavaTM 2 Platform
Standard Edition

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. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

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)
          Process any key events that the component itself recognizes.
protected  void JComponent.processKeyEvent(KeyEvent e)
          Override processKeyEvent to process events
protected  void JEditorPane.processComponentKeyEvent(KeyEvent e)
          Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.
abstract  void FocusManager.processKeyEvent(Component focusedComponent, KeyEvent anEvent)
          This method is called by JComponents when a key event occurs.
 void MenuElement.processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)
          Process a key event.
 void DefaultFocusManager.processKeyEvent(Component focusedComponent, KeyEvent anEvent)
           
protected  void JApplet.processKeyEvent(KeyEvent e)
           
 void MenuSelectionManager.processKeyEvent(KeyEvent e)
          When a MenuElement receives an event from a KeyListener, it should never process the event directly.
 void JMenuItem.processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)
          Process a key event forwarded from the MenuSelectionManager.
static KeyStroke KeyStroke.getKeyStrokeForEvent(KeyEvent anEvent)
          Return a keystroke from an event.
 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)
           
protected  void JTextArea.processComponentKeyEvent(KeyEvent e)
          Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.
 void JComboBox.processKeyEvent(KeyEvent e)
          Handles KeyEvents, looking for the Tab key.
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.
protected  void JMenu.processKeyEvent(KeyEvent e)
           
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.
 

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 BasicTableUI.KeyHandler.keyPressed(KeyEvent e)
           
 void BasicTableUI.KeyHandler.keyReleased(KeyEvent e)
           
 void BasicTableUI.KeyHandler.keyTyped(KeyEvent e)
           
 void BasicTreeUI.KeyHandler.keyPressed(KeyEvent e)
           
 void BasicTreeUI.KeyHandler.keyReleased(KeyEvent e)
           
 void BasicComboPopup.InvocationKeyHandler.keyReleased(KeyEvent e)
           
 void BasicComboBoxUI.KeyHandler.keyPressed(KeyEvent e)
           
 

Uses of KeyEvent in javax.swing.text
 

Methods in javax.swing.text with parameters of type KeyEvent
protected  void JTextComponent.processComponentKeyEvent(KeyEvent e)
          Processes any key events that the component itself recognizes.
 


JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.