public class SwingTimer
extends javax.swing.Timer
javax.swing.Timer
and exists only to
avoid the ambiguity that arises because there is also a Timer
class in java.util
.Constructor and Description |
---|
SwingTimer(int rate,
java.awt.event.ActionListener listener)
Creates a new timer that ticks at the specified rate.
|
addActionListener, fireActionPerformed, getActionCommand, getActionListeners, getDelay, getInitialDelay, getListeners, getLogTimers, isCoalesce, isRepeats, isRunning, removeActionListener, restart, setActionCommand, setCoalesce, setDelay, setInitialDelay, setLogTimers, setRepeats, start, stop
public SwingTimer(int rate, java.awt.event.ActionListener listener)
ActionEvent
to the listener.rate
- The number of milliseconds between tickslistener
- The ActionListener
receiving the events