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

NullPointerException when Scenebuilder can't find Style sheet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 8
    • 7u40
    • javafx
    • None
    • Any

      ALL my FXML files generate a NullPointer Exception when I try to open them.

      Recently I reconfigured my project. The FXML files are in the package:

      org.ed4becky...

      The style sheet is in a resource directory:

      resources/styles/stylesheet.css

      The FXML file has this line:

        <stylesheets>
          <URL value="@/resources/styles/evidentia.css" />
        </stylesheets>

      IN netbeans all the files are under src:

      src/org/ed4becky/xxx.fxml
      src/resources/styles/stylesheet.css

      Everything works great running from Netbeans. Everything works great when this is put into a native package.

      Everything blows up when I try to open the FXML in scenebuilder 1.1. Null Pointer Exceptrion. Turns out that this occurs because SB can't find the style sheet?

      So two things: 1) SB should tell me it can't find the style sheet, not just close with a NullPointerException

      2) what do I need to do so that SB can find the files needed without reconfiguring a project that works everywhere elde?


            jcambon Jerome Cambon
            ethompsonjfx Edward Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: