I'm supposed to use the date as an argument, but I'm using 2000ms just for now to test it, so that's why the GregorianCalendar is commented.

Thx

03-04-2009, 06:42 PM

Steve11235

javax.swing.Tmer is designed to run the listening method on the Event Dispatcher Thread, which is where all work for Swing components takes place. Since you don't have any active Swing components, I don't know what the Timer would do, quite possibly nothing. Is that what you are seeing?

Create a simply Swing UI and have the Timer ActionPerformed update the UI.

03-05-2009, 12:26 AM

Fubarable

Either that, or if this is never to be used in a Swing program, then look into using java.util.Timer instead.