# NetBeans IDE HG Patch # This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /Users/antonepple/Entwicklung/DukeScript/html4j # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java --- boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java +++ boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java @@ -66,12 +66,15 @@ import javafx.scene.layout.HBox; import javafx.scene.layout.VBox; import javafx.scene.text.Text; +import javafx.scene.web.PopupFeatures; import javafx.scene.web.PromptData; +import javafx.scene.web.WebEngine; import javafx.scene.web.WebEvent; import javafx.scene.web.WebView; import javafx.stage.Modality; import javafx.stage.Screen; import javafx.stage.Stage; +import javafx.stage.StageStyle; import javafx.stage.Window; import javafx.stage.WindowEvent; import javafx.util.Callback; @@ -393,7 +396,17 @@ return res[0] ? line.getText() : null; } }); + view.getEngine().setCreatePopupHandler(new Callback() { + @Override + public WebEngine call(PopupFeatures param) { + final Stage stage = new Stage(StageStyle.UTILITY); + final WebView wv2 = new WebView(); + stage.setScene(new Scene(wv2)); + stage.show(); + return wv2.getEngine(); } + }); + } static void waitFinished() { for (;;) {