Event-Driven Programming
Programs with GUIs must respond to events, generated by GUI components, that indicate that specific actions have occurred
A special category of classes, called listeners, wait for events to occur
Therefore, a GUI program is composed of:
- the code that presents the GUI to the user
- the listeners that wait for events to occur
- the specific code that is executed when events occur