Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make ProgressMonitor dialog modal?

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.

like image 576
5YrsLaterDBA Avatar asked Oct 07 '11 18:10

5YrsLaterDBA


1 Answers

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.

like image 140
trashgod Avatar answered Sep 21 '22 11:09

trashgod