Originally posted by Hans Li:
1)Which of the following statements are true?
1) The x,y coordinates of an instance of MouseEvent can be obtained using the getX() and getY() methods
2) The x,y coordinates of an instance of MouseEvent can be obtained using the X and Y integer fields
3) The time of a MouseEvent can be extracted using the getTime() method
4) The time of a MouseEvent can be extracted using the when parameter of the MouseEvent constructor
Answer is 1,4.I think 1,3.Why 4 is ok.But 3 is wrong.
Hans,
I can clear your first doubt....The method to get the time is getWhen() and not getTime().
Hence,3 is wrong and 4 is right....
Hope that helps,
Harpal