I recommend you read through this tutorial: How to Use Swing Timers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)

Then post an SSCCE demonstrating what you've...