我正在尝试对计时器进行编程,但是我如何在标签中显示连续的值?它们的值来自for循环
private void Timer(ActionEvent event) throws InterruptedException {
for(int i =1; i>=0;i++){
Thread.sleep(1000);
if(i<60){
s=i;
}
else if (i==60){
i=1;
count = count+1;
m =count;
// System.out.println("m = "+ m);
}
System.out.println(s+":"+m);
// Integer.toString(s);
// Integer.toString(m);
// Start.setText(String.valueOf(s));
// Start.setText(Start.getText());
// Start.setText(String.valueOf(s)+Start.getText());
}
}