So I have googled some minutes how to use the timer and found some helpfull threads here. But when I want to use the suggested code Eclipse shows me always an error.
Import javax.swing.Timer not java.util.Timer.
javax.swing.Timer
java.util.Timer
Swing Timer has a constructor Timer(int , java.awt.event.ActionListener).
Timer