This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235847

Summary: [74cat] JavaFX FXML Naming conventions for Maven project.
Product: javafx Reporter: Lou Dasaro <mr_lou_d>
Component: ProjectAssignee: Roman Svitanic <rsvitanic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 7.4   
Hardware: PC   
OS: Windows 8   
Issue Type: DEFECT Exception Reporter:

Description Lou Dasaro 2013-09-11 23:04:43 UTC
In NB 7.4, when creating a new JavaFX FXML project, the default name for the FXML file is FXMLDocument and the controller is named FXMLDocumentController.
The FXML file name can be changed in the project wizard to Foo, in which case the generated controller is named FooController.

In contrast, the Maven JavaFX project wizard ignores this convention, and instead by default creates an FXML file named "Scene.fxml" and a controller named FXMLController. Currently, the file name is NOT editabe. 

This presents unnecessary inconsistency that can be resolved by modifying the Maven JavaFX project wizard to use the default names: "FXMLDocument" for the FXML file and "FXMLDocumentController" for the controller.

See related Bug 214381 and Bug 233493
Comment 1 Lou Dasaro 2013-09-11 23:13:32 UTC
See also Bug 235848 - Maven JavaFX FXML project wizard should allow editing of the name of the FXML file.