Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Event insights

 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?




 
Campbell Ritchie
Marshal
Posts: 52632
119
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It says what to use in the API link you gave us.
 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:It says what to use in the API link you gave us.

excuse me?
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

 
Campbell Ritchie
Marshal
Posts: 52632
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Marshal
Posts: 52632
119
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our GUIs forum.
 
Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!