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.
Make Controller fails to inject Private variables (control fx:id ) Purpose: Test NetBeans FXML support. Setup: Java Platform 7u25 or 7u40 and JavaFX Scene Builder 1.1 GA installed. Create New FXML Application in NetBeans Invoke File | New Project... from main menu. "New Project" wizard shows up. In the first step of the wizard select "JavaFX" category and "JavaFX FXML Application" project. Push Next > button. Keep all default settings and push Finish. In the Project View, Double-click on "FXMLDocument.fxml", which should open the selected FXML file in JavaFX Scene Builder 1.1 GA In Scene Builder, from the Library of Controls (upper left), drag a Button control onto the Anchor Pane next to the existing button. Click on the "Code" tab for this new Button control (bottom right) and the Code tab will expand. In the entry field for "fx:id" type: "Button2" and press enter. Save the file. Close Scene Builder. In NetBeans, right-click on "FXMLDocument.fxml" and click on "Make Controller" EXPECTED RESULT: "FXMLDocumentController.java" is updated with the Private variable for the new button (fx:id), i.e. @FXML private Button Button2; ACTUAL RESULT: The variable is NOT injected. REASON: See Bug 236509 and Bug 236559
Fixed as a side effect of issue #236509
Is blocked until bug 236509 fix becomes a 7.4 patch.