File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus exam 3 # 59

 
Stewart Henry
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question is:

Broke up the last line to fix the scrolling .. Jane
I only choose option 1 because, to me, statement 4 does not make any sense. I know that you can construct a new MouseEvent with a constructor that takes a parameter as the time of the event. I don't know how to extract anything from a constructor. I think that if you want the time of the click you should call getWhen()
in the MouseEvent.
Also the explanation seems to be wrong. Perhaps this is a typo, or it is getting really late for me.

[This message has been edited by Jane Griscti (edited October 04, 2001).]
 
Jane Griscti
Ranch Hand
Posts: 3141
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stewart,
You may be right. You can get the time of the event using getWhen(). Perhpas Marcus meant to point out that the time of the event is passed to the MouseEvent object when it is created.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Janes assumption is correct, my question is misleading. How about this for a modified option 4
4) The time of a MouseEvent can be extracted using the getWhen method
What do you think?
Marcus
------------------
http://www.jchq.net Mock Exams, FAQ, Tutorial, Links, Book reviews
=================================================
Almost as good as JavaRanch
=================================================
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic