I want my timer to execute the actionPerformed method only one time once it 5 seconds the time but it is writing in the console \"Hello\" lots of times:
import j
This should do the trick!
new JFrame().setVisible(true);