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

[TitledPane, Accordion] graphicTextGap doesn't affect

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u6, 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      2.2.0b21. Developers scrum of jfx8.0 of 17th august

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: