Here is an Swing example of a simple puzzle game.
Java Swing Shuffle Game
When you press Pause button the title will get animate until you release the pause. Similarly you can use it for JLabel. Source code is also attached.
Hope that can help you much.