The Event-Handling Methods
public void actionPerformed(ActionEvent e) {
if (e.getSource() == incButton)
ctr.inc();
else
ctr.dec();
}
The event handler simply initiates model changes
NOT responsible for the display!
Previous slide
Next slide
Back to first slide
View graphic version