Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
10.0
-
None
-
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:
- Create a Maven JavaFX project
- Update pom.xml and nbactions.xml as per instructions on openjfx.io (JavaFX and NetBeans, Modular with Maven)
- Create a new Empty FXML without a controller in src/main/resources/fxml
- 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">
- Right-click the fxml file in NetBeans and Make Controller. The class will be created in src/main/resources/dumdum/testing/TestScene3Controller.java