aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes EVENT.getSource() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "EVENT.getSource()" Watch "EVENT.getSource()" New topic
Author

EVENT.getSource()

Bhaskar Sanikommu
Greenhorn

Joined: Dec 03, 2002
Posts: 1
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

Joined: Aug 26, 2001
Posts: 7610
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.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EVENT.getSource()