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 - [74cat] JavaFX FXML Naming conventions for Maven project.
Summary: [74cat] JavaFX FXML Naming conventions for Maven project.
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 8
: P4 normal (vote)
Assignee: Roman Svitanic
Depends on:
Reported: 2013-09-11 23:04 UTC by Lou Dasaro
Modified: 2013-09-11 23:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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.