What is the difference between the JDK 1.02 event model and the eventdelegationmodelintroduced with JDK 1.1

The JDK 1.02 event model uses an event inheritance or bubbling approach. In this model,components arerequired to handle their own events. If they do not handle a particular event, the event isinherited by (orbubbled up to) the component's container. The container then either handles the event orit is bubbled up toits container and so on, until the highest-level container has been tried.In the event-delegation model, specific objects are designated as event handlers for GUIcomponents.These objects implement event-listener interfaces. The event-delegation model is moreefficient than theevent-inheritance model because it eliminates the processing required to support thebubbling of unhandledevents.

 

This Question is not yet answered!

 
 

Related Answered Questions

 

Related Open Questions