JavaFX 2.2 Modal window dialog *with* FXML
问题 I am trying to use the example provided by @jewelsea at this gist and I'm stuck because I'm using FXML. I have seen both of these posts: How to create a modal window in JavaFX 2.1 and this answer to JavaFX 2 modal window. Where I'm stuck is in the code by jewelsea, where it says: final WebView webView = new WebView(); webView.getEngine().load("http://docs.oracle.com/javafx/"); primaryStage.setScene(new Scene(webView)); Whereas, since I'm using FXML, I do this: FXMLLoader fxmlLoader = new