Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8114664

Slider: css "-fx-minor-tick-count" doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0
    • fx2.0
    • javafx
    • java6
      windows 7
      fx b39

      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);
          }
      }

            psomashe Parvathi Somashekar (Inactive)
            anazarov Andrey Nazarov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: