i have a problem at progressbar with while statement
i have a jframe, a jprogressbar and a jbutton.
so at the code i can not see the steps of the jprogressbar
in this while statement. how can i see the steps of the jprogressbar,
and in java is there any way or any thing like DoEvents function in visual basic.
i need that so much.
thanks for your interesets.
my sample code.
jProgressBar1.setValue(0);
while(true){
jProgressBar1.setValue(jProgressBar1.getValue()+1);
if(jProgressBar1.getValue()>99)break;
try{
Thread.sleep(50);
}catch (Exception e){}
}
Musa YILMAZ

