I have a For
that counts down, but when I pass the value to Label
it only takes the last value of the loop.
This is my method:
public static void contagemRegressiva(){
System.out.println("Start");
int i=0;
for( i=10;i>=0;i--){
//label
numero[0].setText(""+i);
}
}
The result of Label
goes to 0 direct.