addActionListener method. When the action event
occurs, that object's actionPerformed method is
invoked.ActionEvent,
Tutorial: Java 1.1 Event Model| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e)
Invoked when an action occurs.
|