swing timer

Solutions on MaxInterview for swing timer by the best coders in the world

showing results for - "swing timer"
Kristy
23 May 2016
1  int delay = 1000; //milliseconds
2  ActionListener taskPerformer = new ActionListener() {
3      public void actionPerformed(ActionEvent evt) {
4          //...Perform a task...
5      }
6  };
7  new Timer(delay, taskPerformer).start();