Decision Applications
CONTACTS
|
Progress BarsBefore we started using Swing, we developed progress bars to show the user how a task was progressing. They can be used with either AWT or Swing applications. The ProgressBar class can be used when we know how much progress has been made. To use this class, create a progress bar, set the beginning and ending values, and then update the progress as the task progresses. ProgressBar pB = new ProgressBar(); The BusyProgressBar can be used when you don’t know how much of a task has been completed. The BusyProgressBar shows a moving progress. Once the bar reaches 100 percent completion, it starts over at the beginning again. To use this class: BusyProgressBar bPB = new BusyProgressBar(); // the repeating bar is now showing |