Kenneth Fogel created NETBEANS-4373:
---------------------------------------
Summary: Obsolete JavaFX FXML Controller Skeleton generated
Key: NETBEANS-4373
URL: https://issues.apache.org/jira/browse/NETBEANS-4373
Project: NetBeans
Issue Type: Bug
Components: javafx - Project
Affects Versions: 12.0
Reporter: Kenneth Fogel
The generated FXML controller is out of date. The correct version is what
SceneBuilder 11 generates.
// THE WRONG ONE GENERATED BY NETBEANS
import java.net.URL;
import java.util.ResourceBundle;
/**
* FXML Controller class
*
* @author
*/
public class CasinoFXMLController implements Initializable {
/**
* Initializes the controller class.
*/
@Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
}
}
------------------------------------
// THE RIGHT ONE AS GENERATED BY SCENEBUILDER
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
public class CasinoFXMLController {
@FXML // ResourceBundle that was given to the FXMLLoader
private ResourceBundle resources;
@FXML // URL location of the FXML file that was given to the FXMLLoader
private URL location;
@FXML // This method is called by the FXMLLoader when initialization is
complete
void initialize() {
}
}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists