title: How to Display a working but dummy progress bar in java
body: <p>I want to show a progress bar in my java program but I dont want it to actually work on a real task but i want it to just show that some process is being completed and it should look as if some process is going on. I tried to do this with the following code but it isn't helping me, so please if u can help....</p>
  
  <p>Code:</p>
  
  <pre><code>       try 
         {
             for(int i=0;i&lt;=100;i++){
                prog.setValue(i); // this would set the progressbar
               Thread.sleep(300); // this should pause the program or the loop
             }
         }
  
         catch(Exception e){
  
         }
  </code></pre>