progress bar - JavaFX ProgressBar Value doesn't work -


progressbar pb = new progressbar(0.0); pb.setprogress(1.0 - (1.0 / ((1.0 * 60) / 15000))); 

i want progress bar show 60min state, when left 15000min not showing state.

1.0 - (1.0 / ((1.0 * 60) / 15000)) resolves -249.0. negative number indicates want show indeterminate progress, why progress bar not show actual value. set progress positive number between 0.0 , 1.0, or rather adapt math accodingly.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -