have slider in fxml file :
Slider fx:id="slider" minHeight="20" minWidth="-Infinity" prefWidth="300.0"
Want an slider thumb icon image to be change from my .java class as I can change the thumb icon image by using css
.slider .thumb{
-fx-background-image :url("your image");
...// more customization
}
But I want to change the image from .java class
Please suggest..
Thanks