hello Dan!
I am executing events at both getClickCount==1 and
getClickCount==2. If i had nothing to do at 1, then
there was no problem. Actually at 1, i am drawing
lines betwen primitives and at two, I want to remove
lines between primitives. So, plz explain me. Its
really urgent.
thnaks
--- Dan Boorstein <[EMAIL PROTECTED]> wrote:
> >
> > 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".
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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".