JavaFX Modal Window ownership to Swing
问题 I have an application built on Swing integrated with JavaFX. Swing's JFrame is the top-level window, with JFXPanel housing different JavaFX controls. Now, I am also integrating JavaFX's new Alert API, and currently having difficulty in setting Alert's ownership when shown. That is, I would like to make JFrame as the owner of Alert. JFXPanel fxPanel = new JFXPanel(); Platform.runLater(() -> { Button button = new Button("Alert"); button.setOnAction(evt -> { Alert alert = new Alert(Alert