[TitledPane] constructor with graphic node doesn't use node - only text is applied.

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • 8
    • Affects Version/s: 7u6, 8
    • Component/s: javafx
    • Environment:

      developers controls scrum of august 17.

      Run code:

          @Override
          public void start(Stage stage) throws Exception {
              Accordion acc = new Accordion();

              TitledPane pane1 = new TitledPane("Some text", new Label("Node"));
      // pane1.setText("Some text");
      // pane1.setGraphic(new Label("Node"));
              pane1.setContent(new Button("Some button"));
              acc.getPanes().addAll(pane1);

              VBox pane = new VBox();
              pane.getChildren().addAll(acc);
              Scene scene = new Scene(pane, 300, 700);
              stage.setScene(scene);
              stage.show();
          }

      Commented lines of code and constructor has the same result, but constructor doesn't work. Label("Node") is not applied.

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

              Created:
              Updated:
              Resolved:
              Imported: