- Constructor attaches listener:
helloButton.addActionListener(listener);
- Button remembers all listeners
- When button clicked, button notifies listeners
listener.actionPerformed(event);
- Listener sets text of text field
textField.setText("Hello, World!");