how to use fxml?
Mark Bulthuis
mark.bulthuis at nedap.com
Wed Dec 5 04:36:05 PST 2012
Hi,
If I take a look at the javafx examples, the application is once defined in a fxml file.
Why not use this construction for each node?
For example creating a custom node:
Parent customNode = (Parent) fxmlLoader.load(getClass().getResource("customNode.fxml").openStream());
MyController controller = (MyController) fxmlLoader.getController();
controller.setDataModel(person);
Isn't this a better way? More MVC?
Greetz,
Mark
More information about the openjfx-dev
mailing list