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!

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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.