Java AWT

Previous Chapter 21
java.awt.event Reference
Next
 

ActionListener (New)

Name

ActionListener (New)

[Graphic: Figure from the text]

Description

Objects that implement the ActionListener interface can receive ActionEvent objects. Listeners must first register themselves with objects that produce events. When events occur, they are then automatically propagated to all registered listeners.

Interface Definition

public abstract interface java.awt.event.ActionListener
   extends java.util.EventListener {
  // Interface Methods
  public abstract void actionPerformed (ActionEvent e);
}

Interface Methods

actionPerformed

public abstract void actionPerformed (ActionEvent e)

Parameters

e

The action event that occurred.

Description

Notifies the ActionListener that an event occurred.

See Also

ActionEvent, AWTEventMulticaster, EventListener


Previous Home Next
ActionEvent (New) Book Index AdjustmentEvent (New)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.