Here you can find the source of updateProgressBase(JProgressBar progressBar, int done, int maximum)
protected static void updateProgressBase(JProgressBar progressBar, int done, int maximum)
//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(); } } }