Microsoft SDK for Java

Timer Class Methods

The Timer Class contains the following methods:

addTimerListener adds a listener to the timer.
getPeriod retrieves the timer period.
getRepeat retrieves the timer repeat flag.
getUserID retrieves the timer's user-defined identifier.
isRunning queries the Timer to see if it is running.
removeTimerListener removes a listener from the timer.
start starts the timer.
stop stops the timer.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.