The new event handling model:
-
Components fire events, which can be listened for and acted upon by listeners.
-
Listeners are added to a component.
-
After being added to a component, appropriate methods in the listener's interface will be called when the events the listener has registered interested in are fired by the component.
-
Whenever an event occurs, we have to handle it to be collaborative. But we only need to add codes to the listener by using delegation event model of JDK1.1.
|