Rolf,

Of course double check that you are resetting the trigger on your
behavior *every* time it runs.  Are you running from a command line so
you can see if any errors are occurring and halting operation?

I don't know any reason why WakeupOnElapsedTime should not work, however
I've switched to using only a single wake up on every frame and using
the J3D high res timer for my code.  I've found it to be troublesome to
have more than one behavior.

- John Wright
Starfire Research

Rolf Gabler-Mieck wrote:
Hi all,
i build a JPanel containing a set of JButtons for each type of movement.
Everytime the Button isPressed [using ChangeListener in Combination with
a Buttonmodel and a Swing.Timer] a command will be send to the Behavior
class for navigation, which uses WakeupOnElapsedTime(50)to set up a new
Movement every 50ms. If no Button is pressed a dummy command is send and
no Transformation will done.
Normally it works very nice but when the app runs for a while sometimes
(between 1minute and x minutes!!) the navigation ends.
the Buttons changes their outfit, as they should have to do, while
pressing, so all events work properly.
theres no way to bring it again to work.
I tried to use different Listeners (Action,Mouse & Change in combination
with a thread solution), but all ended in that failure, so I went to use
a Timer instead of a thread to get navigation during button pressing. It
seemed to be working... but today the problem occurs again...

the command is set in the Behavior but there's no reaction, so I think
about using the wrong WakeUp condition, could this be?

parallel I use a KeyNavigationBehavior when the focus is on the
Canvas3d, which works all the time, uses WakeUpOnAWTEvent.
Is WakeupOnElapsedTime the reason for my troubbles?
any help is welcome
best regards
rolf

--
Dipl. Ing.(FH) d. Geomatik
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyn Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [EMAIL PROTECTED]

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