April 1997
Intermediate to advanced
1074 pages
22h 46m
English
Action events are fired off when the user performs an action on a component, such as pushing a button, double-clicking on a list item, or selecting a menu item. There is only one action event type, ACTION_PERFORMED.
public class java.awt.event.ActionEvent
extends java.awt.AWTEvent {
// Constants
public final static int ACTION_FIRST;
public final static int ACTION_LAST;
public final static int ACTION_PERFORMED;
public final static int ALT_MASK;
public final static int CTRL_MASK;
public final static int META_MASK;
public final static int SHIFT_MASK;
// Constructors
public ActionEvent (Object source, int id, String command);
public ActionEvent (Object source, int id, String command, int modifiers);
// Instance Methods
public String getActionCommand();
public int getModifiers();
public String paramString(); }
public final static int ACTION_FIRST
Specifies the beginning range of action event ID values.
public final static int ACTION_LAST
Specifies the ending range of action event ID values.
public final static int ACTION_PERFORMED
The only action event type; it indicates that the user has performed an action.
public final static int ALT_MASK
A constant representing the ALT key. ORed with other masks to form modifiers setting of an AWTEvent
Read now
Unlock full access