- 37 名前:36 mailto:sage [2006/11/26(日) 00:45:44 ]
- 自己解決したと思ったんだけど不可だった。
なんでだろう。 private count=0; private Timer time; private Label sec = new Label(); time = new Timer(); time.setTime(1000); time.start(); public void timerExpired(Timer source) { if(souce==time) { count++; sec.setText(" "+count+"秒"); sec.start(); //これ入れるかどうかわからなかったが…。 } ちゃんとadd(sec);はしているのにずっと0秒のまま。
|

|