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=3c120fd59c88ba8d76a2ca747dc4412a)
- progress.JPG (14.26 KiB) Viewed 2644 times
The module and accompanying documentation are available
here