import javafx.application.Application;
import javafx.geometry.Orientation;
import javafx.scene.Scene;
import javafx.scene.control.Slider;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
public class Main extends Application {
VBox root;
@Override
public void start(Stage stage) {
stage.setTitle(this.getClass().getSimpleName());
stage.setScene(new ToolBarAppScene());
stage.show();
}
public static void main(String[] args) {
launch(Main.class, args);
}
public class ToolBarAppScene extends Scene {
public ToolBarAppScene() {
super(root = new VBox(10));
final Slider slider = new Slider(-100, 0, 0);
slider.setOrientation(Orientation.VERTICAL);
slider.setShowTickLabels(true);
slider.setShowTickMarks(true);
root.getChildren().add(slider);
}
}
}