|
Action Events
Activating a Component, such as a Button, generally triggers the method
public boolean action(Event e, Object arg);
for that Component. The arg parameter depends on the Component that was activated. The following table summarizes the values:
| Component | arg type | description |
| Button | String | The label of the Button. |
| Checkbox | Boolean | The new state of the checkbox. |
| Choice | String | The selected item. |
| List | String | The selected item. |
| TextArea | String | The text in the TextArea. |
| TextField | String | The text in the TextField. |
Related Exercise(s):
|