Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EVENT.getSource()

 
Bhaskar Sanikommu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can any one explain me in detail the difference between EVENT.getSource(); and EVENT.getTarget();. I often see using them interchangebly, and iam confused.
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the java.awt.Event class, I don't see any getSOurce/getTarget methods.
There is a getSource method in java.util.EventObject, but there is no getTarget method in any AWT Event related classes (except in java.beans.EventHandler which has nothing to do with this issue).
Please tell us which class you are talking about so that we can be on the same page. Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic