I have posted a module that uses the JProgressBar bean to display a progress indicator in a non-modal dialog. This approach makes it possible to display and update the progress indicator by placing a single call inside the loop that is driving your lengthy process. This is, in my opinion, an improvement over the example at the start of this thread, which used a modal dialog and therefore required that the main processing loop be placed in the onShow method of the form in dialog.
![progress.JPG](./download/file.php?id=1804&sid=eff73c98b1578fe0ac17d7dc2277146f)
- progress.JPG (14.26 KiB) Viewed 2645 times
The module and accompanying documentation are available
here