You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "John Brice (JIRA)" <ji...@apache.org> on 2019/02/04 10:11:00 UTC

[jira] [Created] (NETBEANS-2051) JavaFX Controller class is created in resources

John Brice created NETBEANS-2051:
------------------------------------

             Summary: JavaFX Controller class is created in resources
                 Key: NETBEANS-2051
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2051
             Project: NetBeans
          Issue Type: Bug
          Components: projects - Maven
    Affects Versions: 10.0
         Environment: Windows 10 (1809 64-bit)
NetBeans 10.0
Maven 3.6.0
AdoptOpenJDK 11.0.2
OpenJFX 11.0.2
            Reporter: John Brice


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

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists