Animation and Timer

Hey everyone! I’m having some trouble to associate an animation with a timer. Well, I have to move some little figure, as a sphere, and count the time it takes to go from a point to another, allowing the user to start and to end the movement and showing the time on the screen. And it all should be shown in a jFrame… Any idea? I am having problems with the classes and the multithreading…





Thank you!

I think you can request such information via animchannel.getAnimMaxTime().

Btw i forgot to mention that you have to listen when the animation finishes via AnimEventListener.

Thanks for replying!! I’ll take a look on animchannel.getAnimMaxTime().

^^