import javax.swing.JProgressBar;
publicclass Main {
publicstaticvoid main(String[] argv) throws Exception {
// Create a horizontal progress bar
int min = 0;
int max = 100;
JProgressBar progress = new JProgressBar(min, max);
// Play animation
progress.setIndeterminate(true);
}
}