JavaFX+MVC. How to hide/show multiple windows?
问题 How to make that when i click on "Open second window" the main window be hide. And when i close second window, the main window be showed? I read this post, but i don't know how to implement it for my task. Thanks! I have next code: Main.java public class Main extends Application { @Override public void start(Stage primaryStage) { primaryStage.setTitle("First Stage"); try { primaryStage.setResizable(false); Parent root = FXMLLoader.load(getClass().getResource("MainView.fxml")); Scene scene =