hello,
maybe I understand your problem wrong but I really don't see a difficulty
say your processStimulus looks like this :
public void processStimulus(Enumeration aCriteria)
{
WakeupOnAWTEvent crit = (WakeupOnAWTEvent)aCriteria.nextElement();
java.awt.AWTEvent[] events = crit.getAWTEvent();
MouseEvent event = (MouseEvent)events[0];
if (event.getClickCount()>1)
{
//eg pick procedure
}
else
{
System.out.println(" only one click!");
//your other stuff
}
wakeupOn(iAWTEventCondition);
}
then you have separate behavior for 1 click and for 2
that's how i interpreted your problem
hope it helps
cu
mattie
8/1/01 3:41:40 PM, Corysia Taware <[EMAIL PROTECTED]> wrote:
>I agree with Bob that a state variable is the way to go. But instead of
>threads, I'd suggest diffing the time between clicks. If the difference is
>less than 500ms (or some user-defined time), then it's a double-click.
>
><rant>
>And, Ashish, please come up with a more informative subject line
></rant>
>
===========================================================================
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".