| 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 |
|---|---|
abstract boolean |
KeyboardFocusManager.dispatchKeyEvent(KeyEvent
Typically this method will be called by
dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.
|
boolean |
DefaultKeyboardFocusManager.dispatchKeyEvent(KeyEvent
Called by
dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.
|
boolean |
KeyEventDispatcher.dispatchKeyEvent(KeyEvent
This method is called by the current KeyboardFocusManager requesting that this KeyEventDispatcher dispatch the specified event on its behalf.
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStrokeForEvent(KeyEvent
Returns an
AWTKeyStroke which represents the stroke which generated a given
KeyEvent.
|
void |
AWTEventMulticaster.keyPressed(KeyEvent
Handles the keyPressed event by invoking the keyPressed methods on listener-a and listener-b.
|
void |
AWTEventMulticaster.keyReleased(KeyEvent
Handles the keyReleased event by invoking the keyReleased methods on listener-a and listener-b.
|
void |
AWTEventMulticaster.keyTyped(KeyEvent
Handles the keyTyped event by invoking the keyTyped methods on listener-a and listener-b.
|
boolean |
KeyEventPostProcessor.postProcessKeyEvent(KeyEvent
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.
|
abstract boolean |
KeyboardFocusManager.postProcessKeyEvent(KeyEvent
This method will be called by
dispatchKeyEvent.
|
boolean |
DefaultKeyboardFocusManager.postProcessKeyEvent(KeyEvent
This method will be called by
dispatchKeyEvent.
|
abstract void |
KeyboardFocusManager.processKeyEvent(Component
This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.
|
void |
DefaultKeyboardFocusManager.processKeyEvent(Component
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
Processes key events occurring on this component by dispatching them to any registered
KeyListener objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
KeyListener.keyPressed(KeyEvent
Invoked when a key has been pressed.
|
void |
KeyAdapter.keyPressed(KeyEvent
Invoked when a key has been pressed.
|
void |
KeyListener.keyReleased(KeyEvent
Invoked when a key has been released.
|
void |
KeyAdapter.keyReleased(KeyEvent
Invoked when a key has been released.
|
void |
KeyListener.keyTyped(KeyEvent
Invoked when a key has been typed.
|
void |
KeyAdapter.keyTyped(KeyEvent
Invoked when a key has been typed.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyStroke |
KeyStroke.getKeyStrokeForEvent(KeyEvent
Returns a KeyStroke which represents the stroke which generated a given KeyEvent.
|
static boolean |
SwingUtilities.notifyAction(Action
Invokes
actionPerformed on
action if
action is enabled (and non-
null).
|
protected void |
JComponent.processComponentKeyEvent(KeyEvent
Processes any key events that the component itself recognizes.
|
protected boolean |
JTable.processKeyBinding(KeyStroke
|
protected boolean |
JComponent.processKeyBinding(KeyStroke
Invoked to process the key bindings for
ks as the result of the
KeyEvent
e.
|
protected boolean |
JMenuBar.processKeyBinding(KeyStroke
Subclassed to check all the child menus.
|
static boolean |
SwingUtilities.processKeyBindings(KeyEvent
Process the key bindings for the
Component associated with
event.
|
void |
JComboBox.processKeyEvent(KeyEvent
Handles
KeyEvents, looking for the Tab key.
|
void |
MenuSelectionManager.processKeyEvent(KeyEvent
When a MenuElement receives an event from a KeyListener, it should never process the event directly.
|
protected void |
JPopupMenu.processKeyEvent(KeyEvent
Processes key stroke events such as mnemonics and accelerators.
|
protected void |
JMenu.processKeyEvent(KeyEvent
Processes key stroke events such as mnemonics and accelerators.
|
protected void |
JComponent.processKeyEvent(KeyEvent
Overrides
processKeyEvent to process events.
|
void |
MenuElement.processKeyEvent(KeyEvent
Process a key event.
|
void |
JPopupMenu.processKeyEvent(KeyEvent
Processes a key event forwarded from the
MenuSelectionManager and changes the menu selection, if necessary, by using
MenuSelectionManager's API.
|
void |
JMenuItem.processKeyEvent(KeyEvent
Processes a key event forwarded from the
MenuSelectionManager and changes the menu selection, if necessary, by using
MenuSelectionManager's API.
|
void |
JMenuBar.processKeyEvent(KeyEvent
Implemented to be a
MenuElement -- does nothing.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MenuKeyEvent
MenuKeyEvent 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
Processes key events occurring on the
JLayer or any of its subcomponents.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BasicComboBoxUI.KeyHandler.keyPressed(KeyEvent
|
void |
BasicTableUI.KeyHandler.keyPressed(KeyEvent
|
void |
BasicTreeUI.KeyHandler.keyPressed(KeyEvent
|
void |
BasicComboPopup.InvocationKeyHandler.keyReleased(KeyEvent
|
void |
BasicTableUI.KeyHandler.keyReleased(KeyEvent
|
void |
BasicTreeUI.KeyHandler.keyReleased(KeyEvent
|
void |
BasicTableUI.KeyHandler.keyTyped(KeyEvent
|
void |
BasicTreeUI.KeyHandler.keyTyped(KeyEvent
Invoked when a key has been typed.
|