moved from thread.sleep to javax.swing.Timer for animation