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 234326

Summary: Make Controller uses deprecated Initializable
Product: javafx Reporter: assylias <assylias>
Component: EditorAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description assylias 2013-08-13 12:41:31 UTC
After creating a FXML file and clicking on "Make Controller", a class is generated that implements Initializable and overrides its initialize method.

This approach is obsolete in JavaFX 2.2+ and the class should _not_ implement Initializable and the generated method could have the following signature: @FXML private void initialize() {}

This might be an issue for older versions of JavaFX though.

Reference: http://docs.oracle.com/javafx/2/fxml_get_started/whats_new2.htm