Please investigate the use of javax.swing.Timer to control the animation or activity in a Swing application.