JavaScript is disabled on your browser.
JavaScript is disabled on your browser.
Uses of Class java.awt.AWTKeyStroke
Packages that use 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.
Methods in java.awt that return AWTKeyStroke
Modifier and Type
Method
Description
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStroke (char keyChar)
Returns a shared instance of an AWTKeyStroke
that represents a KEY_TYPED
event for the
specified character.
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStroke (int keyCode,
int modifiers)
Returns a shared instance of an AWTKeyStroke
,
given a numeric key code and a set of modifiers.
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStroke (int keyCode,
int modifiers,
boolean onKeyRelease)
Returns a shared instance of an AWTKeyStroke
,
given a numeric key code and a set of modifiers, specifying
whether the key is activated when it is pressed or released.
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStroke (Character keyChar,
int modifiers)
Returns a shared instance of an AWTKeyStroke
that represents a KEY_TYPED
event for the
specified Character object and a set of modifiers.
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStroke (String s)
Parses a string and returns an AWTKeyStroke
.
static AWTKeyStroke
AWTKeyStroke. getAWTKeyStrokeForEvent (KeyEvent anEvent)
Returns an AWTKeyStroke
which represents the
stroke which generated a given KeyEvent
.
Subclasses of AWTKeyStroke in javax.swing
Modifier and Type
Class
Description
class
KeyStroke
A KeyStroke represents a key action on the keyboard, or equivalent input
device.
JavaScript is disabled on your browser.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .
Scripting on this page tracks web page traffic, but does not change the content in any way.