Loading fxml files inside a main fxml file
问题 I have a main fxml file with several menus. When the user clicks certain buttons, the content changes and these contents are the seperate fxml files which loads on the main screen. The entire scene doesn't change but only a part of the scene changes instead. Here is a simple prototype of the application which I want to make![enter image description here][1] https://www.dropbox.com/s/3nildyt004v32vc/fxml%20application.png 回答1: try this.. AnchorPane pane; // pane where fxml was showing menu1