这要用线程来做
public void change(){
new Thread(){ public void run(){
for(int i = 0; i < 1000; i++) {
label1.setText(i + "");
try {
Thread.currentThread().sleep(1000);
} catch(InterruptedException eaaa) { }
}
}}.start();
}
}
public void change(){
new Thread(){ public void run(){
for(int i = 0; i < 1000; i++) {
label1.setText(i + "");
try {
Thread.currentThread().sleep(1000);
} catch(InterruptedException eaaa) { }
}
}}.start();
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货