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
Post a Comment