Java javax.swing KeyStroke fields, constructors, methods, implement or subclass

Example usage for Java javax.swing KeyStroke fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing KeyStroke.

The text is from its open source code.

Method

booleanequals(Object anObject)
Returns true if this object is identical to the specified object.
chargetKeyChar()
Returns the character for this AWTKeyStroke .
intgetKeyCode()
Returns the numeric key code for this AWTKeyStroke .
intgetKeyEventType()
Returns the type of KeyEvent which corresponds to this AWTKeyStroke .
KeyStrokegetKeyStroke(char keyChar, boolean onKeyRelease)
Returns an instance of a KeyStroke, specifying whether the key is considered to be activated when it is pressed or released.
KeyStrokegetKeyStroke(Character keyChar, int modifiers)
Returns a shared instance of a KeyStroke that represents a KEY_TYPED event for the specified Character object and a set of modifiers.
KeyStrokegetKeyStroke(int keyCode, int modifiers)
Returns a shared instance of a KeyStroke, given a numeric key code and a set of modifiers.
KeyStrokegetKeyStroke(char keyChar)
Returns a shared instance of a KeyStroke that represents a KEY_TYPED event for the specified character.
KeyStrokegetKeyStroke(String s)
Parses a string and returns a KeyStroke.
KeyStrokegetKeyStroke(int keyCode, int modifiers, boolean onKeyRelease)
Returns a shared instance of a KeyStroke, given a numeric key code and a set of modifiers, specifying whether the key is activated when it is pressed or released.
KeyStrokegetKeyStrokeForEvent(KeyEvent anEvent)
Returns a KeyStroke which represents the stroke which generated a given KeyEvent.
intgetModifiers()
Returns the modifier keys for this AWTKeyStroke .
booleanisOnKeyRelease()
Returns whether this AWTKeyStroke represents a key release.
StringtoString()
Returns a string that displays and identifies this object's properties.