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

[TitledPane, Accordion] graphicTextGap doesn't affect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 7u6, 8
    • javafx
    • 2.2.0b21. Developers scrum of jfx8.0 of 17th august

      Code:

          
          @Override
          public void start(Stage stage) throws Exception {
              Accordion acc = new Accordion();
              
              TitledPane pane1 = new TitledPane();
              pane1.setText("Some text");
              pane1.setGraphic(new Label("Node"));
              pane1.setContent(new Button("Some button"));
              acc.getPanes().addAll(pane1);
              
              Slider slider = new Slider(0, 100, 50);
              slider.valueProperty().bindBidirectional(pane1.graphicTextGapProperty());
              slider.setShowTickLabels(true);
              slider.setShowTickMarks(true);
              
              VBox pane = new VBox();
              pane.getChildren().addAll(acc, slider);
              Scene scene = new Scene(pane, 300, 700);
              stage.setScene(scene);
              stage.show();
          }

      Move slider.

            kwwong Kinsley Wong (Inactive)
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: