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

[TitledPane] color of text in graphic node is not updated, when TitledPane is selected.

    XMLWordPrintable

    Details

      Description

      Look at the attached movie.

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

              TitledPane pane1 = new TitledPane();
              pane1.setText("Text");
              pane1.setGraphic(new Label("Node"));
              pane1.setContent(new Button("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();
          }

      Text text become white, when TitledPane is selected. Node label("Node") is still black.

        Attachments

          Activity

            People

            Assignee:
            raginip Ragini Prasad (Inactive)
            Reporter:
            akirov Alexander Kirov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Imported: