hi there to all,
   I'm implementing a simple behavior with the following initialize() code:

   WakeupCriterion[] single = new WakeupCriterion[4];
   single[0] = new WakeupOnAWTEvent(MouseEvent.MOUSE_CLICKED);
   single[1] = new WakeupOnAWTEvent(MouseEvent.MOUSE_MOVED);
   single[2]= new WakeupOnAWTEvent(KeyEvent.KEY_PRESSED);

   WakeupCriterion[] mix = new WakeupCriterion[2];
   mix[0] = single[0];
   mix[1] = single[2];

   single[3] = new WakeupAnd(mix); // something wrong here

   wakeupOn(new WakeupOr(single));

   Just in the code, I'm implementing a behavior that wakes up on either of
the 4 conditions: mouseClicked or mouseMoved or keyPressed or (mouseClicked
and keyPressed). I'm getting some runtime errors..
what's the right thing to do?

thanks,
daniel

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