This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EVENT.getSource()

 
Bhaskar Sanikommu
Greenhorn
Posts: 1
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic