0

I just wanted to add a progress bar to my program for aesthetics and not actually monitoring a task progress. I'm using the Jframe progress bar.

for(int i=0; i<=100;i++){


  jProgressBar1.setValue(i);

}

im currently using this code but it fills up the progress bar immediately. Is there a way to slow it down without using Thread.sleep? Thanks.

0 Answers0