JavaFX 8 loading multiple fxml files into borderpane
问题 Given the following code: public class Main extends Application { private BorderPane rootLayout; private VBox toolbarLayout; private URL path; public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) { FXMLLoader loader = new FXMLLoader(); // Root View path = getClass().getResource("mainLayout.fxml"); try { loader.setLocation(path); rootLayout = (BorderPane) loader.load(); } catch (IOException e){ System.out.println("Not found: " + path); e