hi,
i'm making a pure java app and i am having trouble updating the view while i am processing the data.
i have a Frame with both a Label and JProgressBar in it. i am processing data that must go through several iterative steps. i want there to be visual feedback while the processing takes place.
i currently have myLabel.setText("starting step N") at the beginning of each step and one call at the end saying "process complete". i also have System.out calls along with the above calls, so i can see what is happening in the terminal. during the last step (which takes the longest amount of time) i call progressBar.setValue(progressBar.getValue() + 1) after each iteration. there are 100 steps and i have the progress bar min/max set to 0/100.
when i run the program, no updates are made to either the label or progress bar, until the end when "process complete" shows and the progress bar goes from 0 - 100%.
it's been a while since i've done any java, so i may be missing something fundamental. also, i've run this on os x and windows, and the behaviour is the same. os x has java 1.4.1 if that matters at all.