How to pass object created in FXML Controller1 to Controller2 of inner FXML control
问题 I have JavaFX 2.0 application, which consists of two FXML files, and 2 Controllers for them + one \"main\" .java file. At the start time, FXML1 is initialized, like this: public void start(Stage stage) throws Exception { stage.setTitle(\"Demo Jabber JavaFX Chat\"); Parent root = FXMLLoader.load(getClass().getResource(\"fxml_example.fxml\"), ResourceBundle.getBundle(\"fxmlexample.fxml_example\")); Scene scene = new Scene(root, 226, 264); stage.setScene(scene); scene.getStylesheets().add(\