• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Marcus exam 3 # 59

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
=================================================
 
reply
    Bookmark Topic Watch Topic
  • New Topic