Active Events
Prior to the 1.2 AWT, events posted to an event queue had to have either a Component or a MenuComponent specified as the source of the event in order for the event to be dispatched. When an event is dispatched by an event queue, either Component.dispatchEvent() or MenuComponent.dispatchEvent() is invoked for the source of the event, depending upon the type of the event source.
The 1.2 AWT introduces a new type of event—an active event. Active events are represented by the java.awt.ActiveEvent interface, which defines a lone method: void dispatch(). Active events are dispatched by invoking the event's dispatch method, instead of invoking a method provided by the event source. As a result, active events allow noncomponents to arrange ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access