joi, 31 august 2017

JavaFX : Loading New FXML in the Same Scene / WIndow

http://bit.do/dHhVp RaWorkshop secret sale page.
This video shows how to load new FXML layout in the same scene. This process is very simple. All that you have to do is to load the FXML layout to a variable (a container variable. In this case AnchorPane) using FXMLLoader calss. FXMLLoader.load(getClass().getResource("FXML_NAME.fxml")); Then set the content of the current root pane to this variable.

Niciun comentariu:

Trimiteți un comentariu