Event Model illustrated with Button
L
Click here
Window with event
source - a Button.
The button puts L on
its ActionListener list.
Instance of class implementing ActionListener
actionPerformed
method
S
L
When user clicks the button, the button makes an ActionEvent object and passes it to the actionPerformed method of listeners on its list.
ActionEvent
Previous slide
Next slide
Back to first slide
View graphic version