FileDocCategorySizeDatePackage
TimerThread.javaAPI DocExample1889Thu Feb 04 16:10:34 GMT 1999None

TimerThread

public class TimerThread extends Thread

Fields Summary
Component
comp
int
timediff
boolean
shouldRun
Constructors Summary
public TimerThread(Component comp, int timediff)

		this.comp = comp;
		this.timediff = timediff;
		shouldRun = true;
		setName("TimerThread(" + timediff + " milliseconds)");
	
Methods Summary
public voidrun()

		while (shouldRun) {
			try {
				comp.repaint();
				sleep(timediff);
			} catch (Exception e) {}
		}