Professional Documents
Culture Documents
By using JProgressBar
Supply the minimum and maximum value.
progressBar = new JProgressBar(0, 100);
progressBar.setStringPainted(true) :-progress bar
computes the completion percentage and displays a
string “%n”.
For displaying a different string,supply it with the
setString method Ex
if(progressBar.getValue()>900)
progressBar.setString(“almost Done”);
Progress Monitors