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

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

Introduction

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

The text is from its open source code.

Subclass

javax.swing.Action has subclasses.
Click this link to see all its subclasses.

Implementation

javax.swing.Action has the following implementations.
Click this link to see all its implementation.

Field

StringDEFAULT
Not currently used.
StringNAME
The key used for storing the String name for the action, used for a menu or button.
StringSHORT_DESCRIPTION
The key used for storing a short String description for the action, used for tooltip text.
StringLONG_DESCRIPTION
The key used for storing a longer String description for the action, could be used for context-sensitive help.
StringSMALL_ICON
The key used for storing a small Icon, such as ImageIcon.
StringACTION_COMMAND_KEY
The key used to determine the command String for the ActionEvent that will be created when an Action is going to be notified as the result of residing in a Keymap associated with a JComponent.
StringACCELERATOR_KEY
The key used for storing a KeyStroke to be used as the accelerator for the action.
StringMNEMONIC_KEY
The key used for storing an Integer that corresponds to one of the KeyEvent key codes.
StringSELECTED_KEY
The key used for storing a Boolean that corresponds to the selected state.
StringDISPLAYED_MNEMONIC_INDEX_KEY
The key used for storing an Integer that corresponds to the index in the text (identified by the NAME property) that the decoration for a mnemonic should be rendered at.
StringLARGE_ICON_KEY
The key used for storing an Icon.

Constructor

Method

voidactionPerformed(ActionEvent e)
Invoked when an action occurs.
voidaddPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChange listener.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ClassgetClass()
Returns the runtime class of this Object .
ObjectgetValue(String key)
Gets one of this object's properties using the associated key.
booleanisEnabled()
Returns the enabled state of the Action .
voidputValue(String key, Object value)
Sets one of this object's properties using the associated key.
voidremovePropertyChangeListener(PropertyChangeListener listener)
Removes a PropertyChange listener.
voidsetEnabled(boolean b)
Sets the enabled state of the Action .
StringtoString()
Returns a string representation of the object.