Uploaded July 2016 | Updated November 2026, 1 day ago
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_file_name.fxml"));
Then set the content of the current root pane to this variable.
- Genuine Coder
genuinecoder.com
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_file_name.fxml"));
Then set the content of the current root pane to this variable.
- Genuine Coder
genuinecoder.com










