Javafx slider: text as tick label
I just started to learn Javafx, and I really like it so far. However in my
current project I would need to use text as the tick labels for the javafx
slider. I googled it a lot, but couldn't find any help. So for example I
would like a slider with 4-5 positions, and them being "bad", "good", etc.
instead of 1,2,3,...
I know I could build a custom UI manually with labels placed at the
correct places, but I need to generate the sliders with custom text, and
diofferent length every time, so it wouldn't work. In swing it is possible
to change the labels with a hashtable for example, so my question is, is
it possible to do it in Javafx?
No comments:
Post a Comment