JavaFX FXML Parameter passing from Controller A to B and back
问题 I want to create a controller based JavaFX GUI consisting of multiple controllers. The task I can't accomplish is to pass parameters from one Scene to another AND back. Or in other words: The MainController loads SubController's fxml, passes an object to SubController, switches the scene. There shall not be two open windows. After it's work is done, the SubController shall then switch the scene back to the MainController and pass some object back. This is where I fail. This question is very