Take a look at the sample code and images of how the user slider is rendered in this AudioPlayer .
In addition, the JFXtras library has many sensors if you just need feedback, not an interactive control.
Here is a css example using a selector that is indicated by an invariant answer. Note that I needed to add the -fx-padding specification in half the size of the images to display the entire image.
.slider .thumb { -fx-background-image :url("http://icons.iconarchive.com/icons/double-j-design/diagram-free/128/piggy-bank-icon.png"); -fx-padding: 64; }
Application example:
import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.*; import javafx.scene.layout.*; import javafx.stage.Stage; public class SliderCss extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { VBox layout = new VBox(); layout.setStyle("-fx-background-color: cornsilk; -fx-padding: 10px;"); layout.getChildren().setAll(new Slider()); layout.getStylesheets().add(getClass().getResource("slider.css").toExternalForm()); stage.setScene(new Scene(layout)); stage.show(); } }
Program output example:

source share