Lakshya Goyal
Lakshya Goyal

Reputation: 360

How to add animations in Java Swing class without flash?

I am making a basic java application and I was just wondering how I can add animations to my swing class. I wanted to know about animations like:

The animations just need to be basic. Things you could do in Powerpoint. Anyone know how this can be done?

Upvotes: 2

Views: 149

Answers (2)

trashgod
trashgod

Reputation: 205795

While JavaFX has strong support for animations and transitions, a Swing Timer or SwingWorker can be used to achieve many similar effects. A number of examples are shown here and here.

Upvotes: 3

Jocke
Jocke

Reputation: 424

Swing doesn't have any good/sensible support for animations or transitions. You might want to have a look at JavaFX instead.

Upvotes: 0

Related Questions