Reputation: 1
I am using an animated GIF image as icon to button. But this GIF loops without stopping.
How can I play this GIF icon animation just once?
Upvotes: 0
Views: 552
Reputation: 168835
When creating an animated GIF, there are options to have it only loop a single time. That is where you need to look for a solution to this problem. Swing itself provides no methodology to change the behavior.
Upvotes: 1