Java JProgressBar updateProgressBase(JProgressBar progressBar, int done, int maximum)

Here you can find the source of updateProgressBase(JProgressBar progressBar, int done, int maximum)

Description

update Progress Base

License

Open Source License

Declaration

protected static void updateProgressBase(JProgressBar progressBar,
            int done, int maximum) 

Method Source Code

//package com.java2s;

import javax.swing.JProgressBar;

public class Main {
    protected static void updateProgressBase(JProgressBar progressBar,
            int done, int maximum) {
        if (progressBar != null) {
            progressBar.setValue(done);/*from ww w.j a v  a  2  s  . co  m*/
            progressBar.setMaximum(maximum);
            progressBar.setStringPainted(true);
            progressBar.repaint();
        }
    }
}

Related

  1. generateProgressBarFor(Object... objs)
  2. incProgressBar(JProgressBar jpb)
  3. printProgress(JProgressBar prBar, int progressValue)
  4. SetProgressBar(JProgressBar jpb)
  5. showProgressBar(String message, int steps)