Hi guys,
I have one simple question here.
I have a progress bar.
And I have a loop:
for(int i = 0; i<160;i++)
{
progressBar.setValue(somevalue);
}
I want to somehow connect the progress bar with this loop, so the progress bar will present the progress of the loop. For example, when i == 80, the progress bar must be 50%.
The progress bar takes INT as argument. So I can send the new value from the loop with setValue(int newValue) for example.
Can someone tell me what's the best formula to connect these two objects.