I have a Java program in which an action is initiated which loops through a list of items, does some calculations on the data, and various other tasks. The process takes about 10 minutes altogether, but I would like to output the results for each item in the list as the processing of that item is completed. The output is a set of items written to cells in a table. There is also a progress bar which does not update until the whole action completes.
Despite output statements which are called during the loop through the list of items, all output seems to be queued up and only output after the entire action comes to an end.
I've seen refresh procedures in other languages to get around this. Does Java allow such a refresh?
Thanks in advance for any help with this.