java - javafx slider thumb move -


i need move thumb on slider special value on track. how it's going on: if click mouse on javafx slider - first point (thumb) moving place click, moving new position. need move thumb new position. i'm using

amountsldr.addeventfilter(mouseevent.mouse_clicked, event -> {}); 

and

amountsldr.addeventfilter(mouseevent.mouse_dragged, event -> {     amountsldr.valueproperty().set(newval); }); 

may know how can it? thank alot!!!


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -