import javafx.application.Application; import javafx.builders.SliderBuilder; import javafx.scene.Scene; import javafx.scene.control.Slider; import javafx.stage.Stage; /** * * @author Alexander Kouznetsov */ public class SliderBug extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { Slider slider = SliderBuilder.create() .min(0) .max(100) .value(0) .showTickMarks(true) .showTickLabels(true) .majorTickUnit(50) .minorTickCount(0) .snapToTicks(true) .build(); Scene scene = new Scene(slider); stage.setScene(scene); stage.setVisible(true); } }