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 - Make Controller uses deprecated Initializable
Summary: Make Controller uses deprecated Initializable
Status: NEW
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-13 12:41 UTC by assylias
Modified: 2013-09-04 13:45 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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