How to load same main fxml file multiple times by clicking on the new tab button?
posted 8 months ago
I am not able to add new tab functionality to browser.I already search a lot on google but nothing work.I want to load main fxml file again nad again dynamically by clicking on new tab button.
Below is Main.java file
Here is some part of First-page.fxml file which is the main view...
Below is controller of First-page.fxml
In Controller class Tab-First-page.fxml is the copy of first-page.fxml and changes in Tab-first-page.fxml is that it does not contain Tabpane otherwise it is same as First-page.fxml I am able to load multiple tab from First-page.fxml but not able to open new tab from Tab-first-page.fxml that is, From main page multiple tabs can be open dynamically but from those open tabs I am not able to open new tabs. Following is the error I am getting...