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值的想法?