An good Tutorial on swing eventing is Lesson: Writing Event Listeners.
The important classes in this case are :-
- EventListener
- EventObject
the other eventing classes that i saw are the following:-
- javax.swing.event.EventListenerList
- java.util.EventListenerProxy
Now the important point is that both EventListerList and EventListenerProxy can play an important role in the implementation of the java based eventing solution.
So why are they not defined in java.util.* or say java.util.events.* ?
It seems a Generic Eventing Base has never been of importance to JDK Developers. (A possible project !!).
I leave you thinking for the same.
No comments:
Post a Comment