This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Event insights  RSS feed

 
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
Sheriff
Posts: 55333
157
  • 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: 21047
85
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
Sheriff
Posts: 55333
157
  • 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
Sheriff
Posts: 55333
157
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!