The native OS displays our GUI controls; but there must be some connection to our Java code
The native OS receives an interrupt from mouse click; but there must be a Java object, modeling the button, to receive the interrupt from the OS.
The button object should not be responsible for handling the addition; that is the job of a separate, event handling object
How does the button object know the identity of the event handling object (how does it know whom to notify of events)?
How does the event object know what event occured?
Previous slide | Next slide | Back to first slide | View graphic version |