I have for loop here:
for(int i=0; i<=10; i++)
{
a = r.nextInt(y - x + 1) + x;
label5.setText("Losowanie... " + a);
try {
Thread.sleep(100);
} catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
I want to use invokeAndWait to put "a" to label5 every time (loop), nut i don't know how to use it. Can somebody tell me about that?