Constructor and Description |
---|
IstiGuiTimer(java.awt.event.ActionListener listener,
long delay,
long period)
Create a timer.
|
IstiGuiTimer(java.lang.Runnable task,
long delay,
long period)
Create a timer.
|
Modifier and Type | Method and Description |
---|---|
void |
start()
Start the timer.
|
void |
stop()
Stop the timer.
|
public IstiGuiTimer(java.awt.event.ActionListener listener, long delay, long period)
listener
- the listener.delay
- delay in milliseconds before task is to be executed.period
- time in milliseconds between successive task executions.public IstiGuiTimer(java.lang.Runnable task, long delay, long period)
task
- the task to run.delay
- delay in milliseconds before task is to be executed.period
- time in milliseconds between successive task executions.