JProgressBar
int MAX = 10; JProgressBar progressBar; progressBar = new JProgressBar(0, MAX); progressBar.setValue(0); progressBar.setMaximum(MAX); for (int i=0; i <= MAX; i++) { try { Thread.sleep(100); } catch { e.printStackTrace(); } progressBar.setValue(i); }