How to stop timer function after some time in Java.
+1
A:
You need to give a little more background to your question. Suppose you have a timer called mytimer that is running you can stop it when you are ready by calling the stop() method.
if(mytimer.isRunning()){
mytimer.stop();
}
Vincent Ramdhanie
2009-09-09 13:58:56