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

styles set with node.setStyle() are not inherit

    XMLWordPrintable

Details

    Description

      This works on HTML

      <div style="font-size: 26pt;">
      <span>Big </span>
      <span>Font</span>
      </div>

      This does not work on JFX

      HBox box = new HBox();
      box.setStyle("-fx-font-size: 26px");
      box.getChildren().add(new Text("Big "));
      box.getChildren().add(new Text("Font"));

      Attachments

        Activity

          People

            dgrieve David Grieve
            fheidric Felipe Heidrich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: