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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -