5YrsLaterDBA
5YrsLaterDBA

Reputation: 34820

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.

Upvotes: 9

Views: 3484

Answers (1)

trashgod
trashgod

Reputation: 205875

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.

Upvotes: 4

Related Questions