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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 7u6, 8
    • javafx
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: