Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4718

NewFile>JavaFX2>EmptyFXML default controller placement causes runtime error

    XMLWordPrintableJSON

    Details

    • Flags:
      Important

      Description

      The original description, from the "heat of battle", does not describe a bug and without knowing the error, the problem that OP ran into is unknown. The first comment does describe an error generated by using default values from the wizard. Proceeding with fix for that.

      Please file another issue how to reproduce, if there is still a problem.

      In the Maven-based JavaFx project in Netbeans 12.0, the system generated FXML file in the default package of ${Project}\src\main\resources\fxml is not detected and leads to a Runtime exception when the app tries to load the FXML file using the FXMLLoad.load() API. As a workaround the developer needs to copy the FXML file from the aforementioned default directory to the src\main\resources\org\openjfx\${Project} folder so the build process can process this file.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hrh747 Anthony Romano
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m