Lines 27-33
Link Here
|
27 |
* Contributor(s): |
27 |
* Contributor(s): |
28 |
* |
28 |
* |
29 |
* The Original Software is NetBeans. The Initial Developer of the Original |
29 |
* The Original Software is NetBeans. The Initial Developer of the Original |
30 |
* Software is Oracle. Portions Copyright 2013-2016 Oracle. All Rights Reserved. |
30 |
* Software is Oracle. Portions Copyright 2013-2014 Oracle. All Rights Reserved. |
31 |
* |
31 |
* |
32 |
* If you wish your version of this file to be governed by only the CDDL |
32 |
* If you wish your version of this file to be governed by only the CDDL |
33 |
* or only the GPL Version 2, indicate your decision by adding |
33 |
* or only the GPL Version 2, indicate your decision by adding |
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 (;;) { |