I am making a GUI
using JavaFx
and I need sliders that only allow integers
to ever be selected.
I know I can use snapToTicks
, but while pulling the "knob"
, it can still represent a non-integer
value. I would like to get rid of that. It messes up other components linked to it.
Basically, I want something like Swing's JSlider
, but with JavaFx
. Is it possible? I have been searching but I can't find anything.