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

SB should resolve lookups defined in a .root style class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 8u40
    • Component/s: javafx

      Description

      As scene has a .root added by default, then I think SB should be checking style sheets for .root declarations ?

      i.e. If I attach a style sheet to my FXML with the following css...

      .root {
          abc: red;
      }

      .button {
          -fx-background-color: abc;
      }

      ...then SB should resolve the lookup without having to add the .root style class to the FXML (and Buttons in the FXML would have a red background).

      This Jira comes from an issue posted by an SB user on the OTN forum and stackoverflow:
      https://community.oracle.com/message/12491345
      http://stackoverflow.com/questions/24167948/scenebuilder2-0-does-apply-rules-with-color-lookup

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eleponn Eric Le Ponner
              Reporter:
              mchicharro Moises Chicharro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: