Uses of Class
java.awt.event.KeyEvent
-
Packages that use KeyEvent 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. -
-
Uses of KeyEvent in java.awt
Methods in java.awt with parameters of type KeyEvent Modifier and Type Method Description booleanDefaultKeyboardFocusManager. dispatchKeyEvent(KeyEvent e)Called bydispatchEventif no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.abstract booleanKeyboardFocusManager. dispatchKeyEvent(KeyEvent e)Typically this method will be called bydispatchEventif no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.booleanKeyEventDispatcher. dispatchKeyEvent(KeyEvent e)This method is called by the current KeyboardFocusManager requesting that this KeyEventDispatcher dispatch the specified event on its behalf.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStrokeForEvent(KeyEvent anEvent)Returns anAWTKeyStrokewhich represents the stroke which generated a givenKeyEvent.voidAWTEventMulticaster. keyPressed(KeyEvent e)Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.voidAWTEventMulticaster. keyReleased(KeyEvent e)Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.voidAWTEventMulticaster. keyTyped(KeyEvent e)Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.booleanDefaultKeyboardFocusManager. postProcessKeyEvent(KeyEvent e)This method will be called bydispatchKeyEvent.abstract booleanKeyboardFocusManager. postProcessKeyEvent(KeyEvent e)This method will be called bydispatchKeyEvent.booleanKeyEventPostProcessor. 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.protected voidComponent. processKeyEvent(KeyEvent e)Processes key events occurring on this component by dispatching them to any registeredKeyListenerobjects.voidDefaultKeyboardFocusManager. 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 voidKeyboardFocusManager. 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. -
Uses of KeyEvent in java.awt.event
Methods in java.awt.event with parameters of type KeyEvent Modifier and Type Method Description voidKeyAdapter. keyPressed(KeyEvent e)Invoked when a key has been pressed.voidKeyListener. keyPressed(KeyEvent e)Invoked when a key has been pressed.voidKeyAdapter. keyReleased(KeyEvent e)Invoked when a key has been released.voidKeyListener. keyReleased(KeyEvent e)Invoked when a key has been released.voidKeyAdapter. keyTyped(KeyEvent e)Invoked when a key has been typed.voidKeyListener. keyTyped(KeyEvent e)Invoked when a key has been typed. -
Uses of KeyEvent in javax.swing
Methods in javax.swing with parameters of type KeyEvent Modifier and Type Method Description static KeyStrokeKeyStroke. getKeyStrokeForEvent(KeyEvent anEvent)Returns a KeyStroke which represents the stroke which generated a given KeyEvent.static booleanSwingUtilities. notifyAction(Action action, KeyStroke ks, KeyEvent event, Object sender, int modifiers)InvokesactionPerformedonactionifactionis non-nulland accepts the sender object.protected voidJComponent. processComponentKeyEvent(KeyEvent e)Processes any key events that the component itself recognizes.protected booleanJComponent. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)Invoked to process the key bindings forksas the result of theKeyEvente.protected booleanJMenuBar. processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)Subclassed to check all the child menus.static booleanSwingUtilities. processKeyBindings(KeyEvent event)Process the key bindings for theComponentassociated withevent.voidJComboBox. processKeyEvent(KeyEvent e)HandlesKeyEvents, looking for the Tab key.protected voidJComponent. processKeyEvent(KeyEvent e)OverridesprocessKeyEventto process events.protected voidJMenu. processKeyEvent(KeyEvent evt)Processes key stroke events such as mnemonics and accelerators.voidJMenuBar. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)Implemented to be aMenuElement-- does nothing.voidJMenuItem. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)Processes a key event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by usingMenuSelectionManager's API.protected voidJPopupMenu. processKeyEvent(KeyEvent evt)Processes key stroke events such as mnemonics and accelerators.voidJPopupMenu. processKeyEvent(KeyEvent e, MenuElement[] path, MenuSelectionManager manager)Processes a key event forwarded from theMenuSelectionManagerand changes the menu selection, if necessary, by usingMenuSelectionManager's API.voidMenuElement. processKeyEvent(KeyEvent event, MenuElement[] path, MenuSelectionManager manager)Process a key event.voidMenuSelectionManager. processKeyEvent(KeyEvent e)When a MenuElement receives an event from a KeyListener, it should never process the event directly. -
Uses of KeyEvent in javax.swing.event
Subclasses of KeyEvent in javax.swing.event Modifier and Type Class Description classMenuKeyEventMenuKeyEvent 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
Methods in javax.swing.plaf with parameters of type KeyEvent Modifier and Type Method Description protected voidLayerUI. processKeyEvent(KeyEvent e, JLayer<? extends V> l)Processes key events occurring on theJLayeror any of its subcomponents. -
Uses of KeyEvent in javax.swing.plaf.basic
Methods in javax.swing.plaf.basic with parameters of type KeyEvent Modifier and Type Method Description voidBasicTreeUI.KeyHandler. keyTyped(KeyEvent e)Invoked when a key has been typed.
-