FileDocCategorySizeDatePackage
ReminderBeep.javaAPI DocExample885Tue Dec 12 18:57:46 GMT 2000None

ReminderBeep

public class ReminderBeep extends Object
Simple demo that uses java.util.Timer to schedule a task to execute once 5 seconds have passed.

Fields Summary
Toolkit
toolkit
Timer
timer
Constructors Summary
public ReminderBeep(int seconds)

	toolkit = Toolkit.getDefaultToolkit();
        timer = new Timer();
        timer.schedule(new RemindTask(), seconds*1000);
    
Methods Summary
public static voidmain(java.lang.String[] args)

	System.out.println("About to schedule task.");
        new ReminderBeep(5);
	System.out.println("Task scheduled.");