Announcer - Listener

Example of an Announcer- Listener architecture using AWT events. The display canvas announces mouse events. Each box is controlled by a thread which listens for these events and terminates if the mouse is pressed within the box controlled by that thread.

 

BoxMover.java

EventDemo.java

BoxCanvas.java