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 239672

Summary: [80cat] Make Controller fails to inject Private variables (control fx:id ) on JDK 8 with Scene Builder 2.0
Product: javafx Reporter: Lou Dasaro <mr_lou_d>
Component: Visual Tool IntegrationAssignee: Roman Svitanic <rsvitanic>
Status: NEW ---    
Severity: normal CC: sdedic
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 239995    

Description Lou Dasaro 2013-12-20 03:52:18 UTC
Make Controller fails to inject Private variables (control fx:id ) on JDK 8/SB2

Purpose: Test NetBeans 8.0 FXML support with JDK 8 and JavaFX Scene Builder 2.0 (Developer Preview) 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.
   Change JavaFX Platform to JDK 1.8 and push Finish.
   In the Project View, Double-click on "FXMLDocument.fxml", which should open the selected FXML file in JavaFX Scene Builder 2.0 (Developer Preview)
   In Scene Builder, from the Library of "Controls" (upper left), drag a Button control onto the Anchor Pane above 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.

See also Bug 236620 which has been fixed for NB 7.4/Java 1.7/Scene Builder 1.1
Comment 1 Lou Dasaro 2013-12-20 04:04:49 UTC
Product Version: NetBeans IDE Dev (Build 201312160002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b62
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b120
System: Windows 8 version 6.2 running on x86; Cp1252; en_US (nb)
Comment 2 rory_ryan 2015-08-23 15:21:51 UTC
I am having a similar problem has this been fixed?
Comment 3 Lou Dasaro 2015-09-03 04:00:30 UTC
rory_ryan, please describe the anomaly you are experiencing, along with the information from NetBeans' Help|About (similar to as shown above).

My perception is that this was fixed and works fine in the current 8.1 DEV build.