JavaFX : Loading New FXML in the Same Scene / WIndow - New Tutorial
Вставка
- Опубліковано 21 сер 2024
- 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.
Loading New FXML in the Same Scene / WIndow - New Tutorial
Great, quick, and to the point with a title that says exactly what is described. thanks
Excellent video. Keep it up! Would you like to be UA-cam friends? :]
Not working for me
why is working from
ur side
Sa umpisa nagana. Java lang runtime error.
not working pal! I literally typed the same code as u did!
What's the error?
Sorry mate, not enough explaining for it to be called a tutorial, more like a 'copy my code' video.