A progress bar is a simple component that can be placed inside a window. In contrast, a
ProgressMonitor is a complete dialog box that contains a progress bar (see Figure 6.42). The dialog box contains a Cancel button. If you click it, the monitor dialog box is closed. In addition, your program can query whether the user has canceled the dialog box and terminate the monitored action. (Note that the class name does not start with a “
Construct a progress monitor by supplying the following:
• The parent component over which the dialog box should pop up
• An object (which should ...