List of usage examples for javax.swing Timer getDelay
public int getDelay()
From source file:fr.duminy.jbackup.core.JBackupImplTest.java
private void waitEndOfTimerIfAny(Timer timer) throws InterruptedException { if (timer != null) { long timeout = currentTimeMillis() + 5 * timer.getDelay(); while (timer.isRunning()) { if (currentTimeMillis() > timeout) { fail("timer not stopped"); }/* w w w.j ava 2 s .c o m*/ Thread.sleep(100); } } }