This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 269456
Collapse All | Expand All

(-)boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java (+13 lines)
Lines 66-77 Link Here
66
import javafx.scene.layout.HBox;
66
import javafx.scene.layout.HBox;
67
import javafx.scene.layout.VBox;
67
import javafx.scene.layout.VBox;
68
import javafx.scene.text.Text;
68
import javafx.scene.text.Text;
69
import javafx.scene.web.PopupFeatures;
69
import javafx.scene.web.PromptData;
70
import javafx.scene.web.PromptData;
71
import javafx.scene.web.WebEngine;
70
import javafx.scene.web.WebEvent;
72
import javafx.scene.web.WebEvent;
71
import javafx.scene.web.WebView;
73
import javafx.scene.web.WebView;
72
import javafx.stage.Modality;
74
import javafx.stage.Modality;
73
import javafx.stage.Screen;
75
import javafx.stage.Screen;
74
import javafx.stage.Stage;
76
import javafx.stage.Stage;
77
import javafx.stage.StageStyle;
75
import javafx.stage.Window;
78
import javafx.stage.Window;
76
import javafx.stage.WindowEvent;
79
import javafx.stage.WindowEvent;
77
import javafx.util.Callback;
80
import javafx.util.Callback;
Lines 393-399 Link Here
393
                return res[0] ? line.getText() : null;
396
                return res[0] ? line.getText() : null;
394
            }
397
            }
395
        });
398
        });
399
        view.getEngine().setCreatePopupHandler(new Callback<PopupFeatures, WebEngine>() {
400
            @Override
401
            public WebEngine call(PopupFeatures param) {
402
                final Stage stage = new Stage(StageStyle.UTILITY);
403
                final WebView wv2 = new WebView();
404
                stage.setScene(new Scene(wv2));
405
                stage.show();
406
                return wv2.getEngine();
396
    }
407
    }
408
        });
409
    }
397
410
398
    static void waitFinished() {
411
    static void waitFinished() {
399
        for (;;) {
412
        for (;;) {

Return to bug 269456