GuiEventsStatement ::= |
guiEvents ( ( ),+ )* |
Used by: |
This statement allows event handlers be specified for all Java GUI events, either for one or more components, or as a generic handler that can be dynamically attached to any number of components. One GUI program can have more than one GUI event handler statment. This statement eliminates the need to define tons of anonymous classes for handling GUI events.
Each handler starts with a
In the event-binding section, there are three parts, separated by Window
in java.awt.event.WindowListener
.
The third part of the event-binding section can be one or more event listener
method names, such as windowOpened
and windowIconified
.
Normally, the event object itself (