>
> From: Ashish Aggarwal <[EMAIL PROTECTED]>
> Date: 2001/07/31 Tue PM 01:30:47 EDT
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] plz Explain!
>
> Hello!
>
> How to differentiate between single click of the mouse
> and double click.i am using:
>
> event.getClickCount() to find out the number of
> clicks.
> The problem is that, when I double click the mouse, it
> executes the code for:
>
> event.getClickCount()=1, before executing code for:
>
> event.getClickCount()=2
>
> I don't want  event.getClickCount()=1 to take place
> when i am double clicking the mouse. Please reply as I
> am stuck for last three days. Hope to get a reply
> soon.
>

Maybe I don't understand your problem correctly, but couldn't you just not do anything 
when getClickCount==1?
At the top of your event handler, just return if it's not
2, otherwise, continue processing.

- danboo

===========================================================================
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".

Reply via email to