0
我在GWT工作technology.so我想和值的文本像59,58,57顯示...如何1000毫秒後顯示值同時顯示值
對於我寫了下面的代碼
Timer timer =new Timer(){
@Override
public void run()
{
if(60>seconds)
{
getBox().setText(""+0+":"+""+(60-seconds));---this is the textbox
seconds++;
}
/*else{
Window.alert("");
}*/
}
};
timer.scheduleRepeating(1000);
if(seconds==60)
{
seconds=0;
/* timer.cancel();
timer.run();*/
f1();
}
,但如果它達到零,我需要啓動Timer.But我無法做到that.so可以在任何一個有關於如何在與循環文本框中每1000毫秒顯示TESTBOX值的想法?