0

Hey everyone,

I've written an application with an animation using the Timer object. In order to stop the animation I call the stop method of the Timer class. From what i've read this just pauses the timer. My problem is that if i display the animation once it displays well. However, if i try to run the animation again nothing happens. I'm running the animation from a different class and have tried instantiating the animation class again but it still doesn't start the animation again. Any ideas would be great.

Thanks!

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by Ezzaral
0

If you passed the animation reference to the Timer as a final reference (which would have been required for an anonymous inner class for the ActionListener), then you can't re-instantiate that reference and have it still work in the Timer.

Have you tried recreating the Timer?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.