List of usage examples for javax.swing Timer setLogTimers
public static void setLogTimers(boolean flag)
From source file:TimerSample.java
public static void main(String args[]) { Runnable runner = new Runnable() { public void run() { Timer.setLogTimers(true); ActionListener actionListener = new ActionListener() { public void actionPerformed(ActionEvent actionEvent) { System.out.println("Hello World Timer"); }// w ww. j a v a 2 s . c om }; Timer timer = new Timer(500, actionListener); timer.start(); } }; EventQueue.invokeLater(runner); }