Multicasting Events in Java
When a Source generates an Event, all the registered Listeners are notified and they receive a copy of the Event Object.
This is called Multicasting the Event. In the example below, there are two buttons in the main frame -- New Window and Close All Windows. Clicking the 'New Window' button will add new Frames and clicking the 'Close All Windows' button will hide all the new Frames since the ActionEvent on the 'Close All Windows' button is multicast to all listeners.
|Multicasting Events in Java|