Class ProgressDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ProgressDialog extends JDialog
An informational dialog window showing the progress of a certain action.
See Also:
  • Field Details

    • INFO

      public static final JLabel INFO
      the icon used for this dialog box.
    • serialVersionUID

      private static final long serialVersionUID
      a serial version uid.
      See Also:
    • message

      protected JLabel message
      label showing the message describing what's in progress.
    • progress

      protected JProgressBar progress
      the progress bar
  • Constructor Details

    • ProgressDialog

      public ProgressDialog(JFrame parent, String msg)
      Creates a Progress frame displaying a certain message and a progress bar in indeterminate mode.
      Parameters:
      parent - the parent frame of this dialog (used to position the dialog)
      msg - the message that will be displayed.
  • Method Details

    • setMessage

      public void setMessage(String msg)
      Changes the message describing what's in progress
      Parameters:
      msg - the message describing what's in progress
    • setValue

      public void setValue(int value)
      Changes the value of the progress bar.
      Parameters:
      value - the current value
    • setTotal

      public void setTotal(int n)
      Sets the maximum value for the progress bar. If 0 or less, sets the progress bar to indeterminate mode.
      Parameters:
      n - the maximum value for the progress bar