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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:
    • Environment:

      java6
      windows 7
      fx b39

      Description

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported: