Uses of Class
java.awt.AWTKeyStroke
| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
-
Uses of AWTKeyStroke in java.awt
Methods in java.awt that return AWTKeyStroke Modifier and Type Method Description static AWTKeyStrokeAWTKeyStroke. getAWTKeyStroke(char keyChar)Returns a shared instance of anAWTKeyStrokethat represents aKEY_TYPEDevent for the specified character.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStroke(int keyCode, int modifiers)Returns a shared instance of anAWTKeyStroke, given a numeric key code and a set of modifiers.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStroke(int keyCode, int modifiers, boolean onKeyRelease)Returns a shared instance of anAWTKeyStroke, given a numeric key code and a set of modifiers, specifying whether the key is activated when it is pressed or released.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStroke(Character keyChar, int modifiers)Returns a shared instance of anAWTKeyStrokethat represents aKEY_TYPEDevent for the specified Character object and a set of modifiers.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStroke(String s)Parses a string and returns anAWTKeyStroke.static AWTKeyStrokeAWTKeyStroke. getAWTKeyStrokeForEvent(KeyEvent anEvent)Returns anAWTKeyStrokewhich represents the stroke which generated a givenKeyEvent.Methods in java.awt that return types with arguments of type AWTKeyStroke Modifier and Type Method Description Set<AWTKeyStroke>KeyboardFocusManager. getDefaultFocusTraversalKeys(int id)Returns a Set of default focus traversal keys for a given traversal operation.Set<AWTKeyStroke>Component. getFocusTraversalKeys(int id)Returns the Set of focus traversal keys for a given traversal operation for this Component.Set<AWTKeyStroke>Container. getFocusTraversalKeys(int id)Returns the Set of focus traversal keys for a given traversal operation for this Container.Set<AWTKeyStroke>Window. getFocusTraversalKeys(int id)Gets a focus traversal key for this Window.Method parameters in java.awt with type arguments of type AWTKeyStroke Modifier and Type Method Description voidKeyboardFocusManager. setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)Sets the default focus traversal keys for a given traversal operation.voidComponent. setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)Sets the focus traversal keys for a given traversal operation for this Component.voidContainer. setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)Sets the focus traversal keys for a given traversal operation for this Container. -
Uses of AWTKeyStroke in javax.swing
Subclasses of AWTKeyStroke in javax.swing Modifier and Type Class Description classKeyStrokeA KeyStroke represents a key action on the keyboard, or equivalent input device.Method parameters in javax.swing with type arguments of type AWTKeyStroke Modifier and Type Method Description voidJComponent. setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)Sets the focus traversal keys for a given traversal operation for this Component.