184 |
/** |
/** |
185 |
* Creates a new Timer object. |
* Creates a new Timer object. |
186 |
* |
* |
187 |
* @param d DOCUMENT ME! |
* @param d the default value for both initial and between event delay, in |
188 |
* @param listener DOCUMENT ME! |
* milliseconds. |
189 |
|
* @param listener the first action listener, can be <code>null</code>. |
190 |
*/ |
*/ |
191 |
public Timer(int d, ActionListener listener) |
public Timer(int d, ActionListener listener) |
192 |
{ |
{ |
193 |
delay = d; |
delay = d; |
194 |
|
initialDelay = d; |
195 |
|
|
196 |
if (listener != null) |
if (listener != null) |
197 |
addActionListener(listener); |
addActionListener(listener); |