Just some tips, not real solutions: * filter the getWhen() results, discarting zero or not valid values; * subclass MouseEvent and overload getWhen() method with a code more less like this: public long getWhen() { long t1 = super.getWhen(); if (t1==0 || (put another validation tests here)) return System.currentTimeMillis(); else return t1; } /** please note the above method will return a later timeStamp, and maybe useless for you. You will suffer with low precision of System.currentTimeMillis() on some OS, as Win98; **/
* check bug list for this bug. Or open it; Alessandro --- Omolola Ijeoma Ogunyemi <[EMAIL PROTECTED]> escreveu: > Hi, > > This isn't really Java3D specific but I'm hoping someone can help. > I have some Java 3D code that makes use of the time a mouse event > occurred > (using the getWhen() method of MouseEvent) and compares it to the > approximate time a behavior was triggered (using > System.currentTimeMillis()). > I change the display based on whether the mouse event occurs before > or after the behavior is triggered. > > On a PC running windows 2000, this works. When I run the same code > on a Mac running OS 10.3.4, I find that all the mouse click times > returned > by getWhen() occur at various times in 1970! Any suggestions? Thanks. > > > Omolola > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".