is there a way to make the dialog from ProgressMonitor modal?
EDIT:
The ProgressMonitor class in JAVA API will bring a dialog which is on the top but not Modal. User still has access to the background GUI. I am looking for a Modal dialog to show the progress and also allow user to stop the task in the middle.
As discussed in How to Use Progress Monitors, a number of factors should be considered when Deciding Whether to Use a Progress Bar or a Progress Monitor. As an implementation detail, ProgressMonitor
is modeless because "the Solaris implementation doesn't support Dialog.setModal
yet." As a practical matter, a modal ProgressMonitor
is just a JOptionPane
with a JProgressBar
, but users may appreciate an effort to avoid such modal behavior.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With