java.awt.event
Class ActionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--java.awt.event.ActionEvent
All Implemented Interfaces:
Serializable
public class ActionEvent
extends AWTEvent

A semantic event which indicates that a component-defined action occured. This high-level event is generated by a component (such as a Button) when the component-specific action occurs (such as being pressed). The event is passed to every every ActionListener object that registered to receive such events using the component's addActionListener method.

The object that implements the ActionListener interface gets this ActionEvent when the event occurs. The listener is therefore spared the details of processing individual mouse movements and mouse clicks, and can instead process a "meaningful" (semantic) event like "button pressed".

Since:
1.1
See Also:
ActionListener, Tutorial: Java 1.1 Event Model, Reference: The Java Class Libraries (update file), Serialized Form

 

Field Summary

static int ACTION_FIRST
    The first number in the range of ids used for action events.
static int ACTION_LAST
    The last number in the range of ids used for action events.
static int ACTION_PERFORMED
    This event id indicates that a meaningful action occured.
static int ALT_MASK
    The alt modifier.
static int CTRL_MASK
    The control modifier.
static int