Package javafx.scene.web

Examples of javafx.scene.web.WebEngine.loadContent()


        WebView webView = new WebView();
        WebEngine engine = webView.getEngine();

        EventStreams.valuesOf(textArea.textProperty())
                .successionEnds(Duration.ofMillis(500))
                .subscribe(html -> engine.loadContent(html));

        SplitPane root = new SplitPane();
        root.getItems().addAll(textArea, webView);
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
View Full Code Here


                                public void changed(ObservableValue<? extends String> observableValue, String oldValue, String newValue) {
                                    observableValue.removeListener(this);
                                    Platform.runLater(new Runnable() {
                                        @Override
                                        public void run() {
                                            webEngine.loadContent("");
                                        }
                                    });
                                    Tools.openURL(newValue);
                                }
                            });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.