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

Make Controller creates class in src/main/resources

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0
    • Fix Version/s: None
    • Environment:
      Windows 10 (1809 64-bit)
      NetBeans 10.0
      Maven 3.6.0
      AdoptOpenJDK 11.0.2
      OpenJFX 11.0.2

      Description

      Updating the controller class in an existing fxml file then doing Make Controller causes NetBeans to create the Controller file in src/main/resources instead of src/main/java.

      Steps to reproduce:

      1. Create a Maven JavaFX project
      2. Update pom.xml and nbactions.xml as per instructions on openjfx.io (JavaFX and NetBeans, Modular with Maven)
      3. Create a new Empty FXML without a controller in src/main/resources/fxml
      4. Add an fx:controller property either by editing the fxml directly or defining a controller class using Scene Builder e.g. <AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" fx:controller="dumdum.testing.TestScene3Controller">
      5. Right-click the fxml file in NetBeans and Make Controller. The class will be created in src/main/resources/dumdum/testing/TestScene3Controller.java

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jbrice John Brice
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: