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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -