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 - [80cat] Make Controller fails to inject Private variables (control fx:id ) on JDK 8 with Scene Builder 2.0
Summary: [80cat] Make Controller fails to inject Private variables (control fx:id ) on...
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Visual Tool Integration (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal (vote)
Assignee: Roman Svitanic
Depends on:
Blocks: 239995
  Show dependency tree
Reported: 2013-12-20 03:52 UTC by Lou Dasaro
Modified: 2015-09-03 04:00 UTC (History)
1 user (show)

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-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: "" is updated with the Private variable for the new button (fx:id), i.e. 
    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.