0

I have a javafx application and at a certain point I show a Popup this way:

public static void newWind(String fxml) throws IOException{

            FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource(fxml + ".fxml"));
            Parent root1 = (Parent) fxmlLoader.load();
            Stage stage = new Stage();
            stage.setTitle("ABC");
            Scene newscene = new Scene(root1);
            newscene.getRoot().setStyle("-fx-font-family: 'Arial'");
            stage.setScene(newscene);
            stage.show();

    }

The thing is that I want that the user can't click or do anything in the background non-popup window until he completes the operation in the popup. I want, basically, to "freeze" the old background window...

kleopatra
  • 51,061
  • 28
  • 99
  • 211
Allexj
  • 1,375
  • 6
  • 14
  • 29

0 Answers0