To reproduce run following code
import javafx.application.Application;
import javafx.builders.SliderBuilder;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class SliderTest extends Application {
public static void main(String[] args) {
launch(args);
}
private Parent getContent() {
VBox list = new VBox(10);
list.getChildren().add(SliderBuilder.create().min(0).max(100).value(25)
.style(
"-fx-minor-tick-count: 5;" +
// "-fx-major-tick-unit: 50;"
"-fx-show-tick-marks: true;").build());
return list;
}
public void start(Stage stage) {
stage.setX(100);
stage.setY(100);
Scene scene = new Scene(getContent());
stage.setScene(scene);
stage.setVisible(true);
}
}
import javafx.application.Application;
import javafx.builders.SliderBuilder;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class SliderTest extends Application {
public static void main(String[] args) {
launch(args);
}
private Parent getContent() {
VBox list = new VBox(10);
list.getChildren().add(SliderBuilder.create().min(0).max(100).value(25)
.style(
"-fx-minor-tick-count: 5;" +
// "-fx-major-tick-unit: 50;"
"-fx-show-tick-marks: true;").build());
return list;
}
public void start(Stage stage) {
stage.setX(100);
stage.setY(100);
Scene scene = new Scene(getContent());
stage.setScene(scene);
stage.setVisible(true);
}
}