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.
posted 13 years ago
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.