I'm not sure I understand your question, but I'd guess that you'd benefit from reading this: How to Use Swing Timers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)...