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

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

    XMLWordPrintable

    Details

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

      developers controls scrum of august 17.

      Description

      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.

        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: