Class ProgressPanel

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class ProgressPanel extends JPanel implements ActionListener
A panel that displays the progress of a task in a progress bar, and allows the task to be cancelled.
Author:
James Murty
See Also:
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • dispose

      public void dispose()
    • startProgress

      public void startProgress(String statusMessage, int minTaskValue, int maxTaskValue)
      Displays the progress dialog.
      Parameters:
      statusMessage - describes the status of a task text meaningful to the user, such as "3 files of 7 uploaded"
      minTaskValue - the minimum progress value for a task, generally 0
      maxTaskValue - the maximum progress value for a task, such as the total number of threads or 100 if using percentage-complete as a metric.
    • updateProgress

      public void updateProgress(String statusMessage, int progressValue)