Re: проблема с TimerTask
Terminates this timer, discarding any currently scheduled tasks. Does not interfere with a currently executing task (if it exists). Once a timer has been terminated, its execution thread terminates gracefully, and no more tasks may be scheduled on it.
Надо
Main.T = new Timer();
Main.T.schedule(new LoopProgram(), 0, 25 );
|