[Logo]
Forums Register Login
Event insights
With reference to this diagram, how do you perceive the relationship of Event Source is an aggregate of Event listener (ActionListener)?

It's noted that Java 1.1 Event Model, seems to have been gone out of print, , and, that java.awt.Event is obsolete, so what is the latest version?




(1 like)
It says what to use in the API link you gave us.
 
Campbell Ritchie wrote:It says what to use in the API link you gave us.

excuse me?
(1 like)
From the Javadoc page of java.awt.Event:
NOTE: The Event class is obsolete and is available only for backwards compatilibility. It has been replaced by the AWTEvent class and its subclasses.
 
 
Rob Spoor wrote:From the Javadoc page of java.awt.Event:
NOTE: The Event class is obsolete and is available only for backwards compatilibility. It has been replaced by the AWTEvent class and its subclasses.


Thanks for that, what about my other question?

Your original link was to a tutorial, so try the latest edition of the Java™ Tutorials and use ctrl-F "event" and there is a section about writing event listeners. If that doesn't help, come back and ask again.
(1 like)
Moving to our GUIs forum.
 
Campbell Ritchie wrote:Your original link was to a tutorial, so try the latest edition of the Java™ Tutorials and use ctrl-F "event" and there is a section about writing event listeners. If that doesn't help, come back and ask again.


I'm actually referring to the association between Event source and Event listener, however, the tutorial albeit complete, is helpful.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Oct 19, 2017 12:52:23.