javafx-webengine

Materialize Icons doesn't work in JavaFX Browser

我的未来我决定 提交于 2021-02-10 18:17:37
问题 I'm trying to show MaterialIcons on my JavaFx WebBrowser using webEngine, but it just shows the description of the icon. Icons doesn't work also on IE and Safari. Does anyone know how to make it readable? 回答1: I also struggle on that one, so for those who are intersted to know, JavaFX is only compatible with MaterialIcons written with numerical character references as James_D stated and not with ligatures format. So insted of writing : <i class="material-icons">add</i> You should write : <i

JavaFX - How to create SnapShot/Screenshot of (invisble) WebView

好久不见. 提交于 2021-02-06 10:24:29
问题 I want to create a SnapShot/Screenshot/Image from a WebView in JavaFX(8). This WebView does not need to be visible (in my case). My question: Is it possible (in any way), to create a Screenshot/Image from a WebView, when the WebView is not visible (or not added to any visible container) ? See my example code, when WebView (or it's parent ScrollPane) is visible=false , the Screenshot won't work (respectively is emtpy/blank ). Example code: package test; import javafx.animation.KeyFrame; import

JavaFX - How to create SnapShot/Screenshot of (invisble) WebView

微笑、不失礼 提交于 2021-02-06 10:23:09
问题 I want to create a SnapShot/Screenshot/Image from a WebView in JavaFX(8). This WebView does not need to be visible (in my case). My question: Is it possible (in any way), to create a Screenshot/Image from a WebView, when the WebView is not visible (or not added to any visible container) ? See my example code, when WebView (or it's parent ScrollPane) is visible=false , the Screenshot won't work (respectively is emtpy/blank ). Example code: package test; import javafx.animation.KeyFrame; import

JavaFX - How to create SnapShot/Screenshot of (invisble) WebView

青春壹個敷衍的年華 提交于 2021-02-06 10:23:02
问题 I want to create a SnapShot/Screenshot/Image from a WebView in JavaFX(8). This WebView does not need to be visible (in my case). My question: Is it possible (in any way), to create a Screenshot/Image from a WebView, when the WebView is not visible (or not added to any visible container) ? See my example code, when WebView (or it's parent ScrollPane) is visible=false , the Screenshot won't work (respectively is emtpy/blank ). Example code: package test; import javafx.animation.KeyFrame; import

Unable to display video in webpage using javaFx Webview (video is live on the given url)

与世无争的帅哥 提交于 2021-01-29 16:27:50
问题 I am trying to display a live webpage in JavaFX Webview . Web page contains a video but that video not playing in javaFX webview . Following is the comple code i am using it also contains the live url of my webpage. I want in my JavaFX web view video should be played through displayed live web page. package webviewbrowser; import java.awt.Dimension; import java.awt.Toolkit; import java.util.List; import javafx.application.Application; import javafx.beans.value.ChangeListener; import javafx

how to load pdf viewer from html2pdf on javafx WebView

淺唱寂寞╮ 提交于 2021-01-28 07:31:40
问题 WebView view = new WebView(); final WebEngine eng = view.getEngine(); eng.load("http://localhost/system-eoq/report.php"); I try to load my web page on JavaFX WebView. Everything is fine but a problem is on pdf viewer it doesn't work on JavaFX WebView this is my web look like. 来源: https://stackoverflow.com/questions/45940387/how-to-load-pdf-viewer-from-html2pdf-on-javafx-webview

how to load pdf viewer from html2pdf on javafx WebView

拈花ヽ惹草 提交于 2021-01-28 07:17:05
问题 WebView view = new WebView(); final WebEngine eng = view.getEngine(); eng.load("http://localhost/system-eoq/report.php"); I try to load my web page on JavaFX WebView. Everything is fine but a problem is on pdf viewer it doesn't work on JavaFX WebView this is my web look like. 来源: https://stackoverflow.com/questions/45940387/how-to-load-pdf-viewer-from-html2pdf-on-javafx-webview

How to setup webview in javafx?

左心房为你撑大大i 提交于 2020-07-16 10:37:38
问题 @FXML void openCaptchaSolver(MouseEvent event) { Stage primaryStage = (Stage)((Node)event.getSource()).getScene().getWindow(); Stage secondaryStage = new Stage(); secondaryStage.initOwner(primaryStage); WebView web = new WebView(); WebEngine engine = web.getEngine(); engine.load("https://www.google.com"); VBox root = new VBox(); root.getChildren().addAll(web); secondaryStage.setScene(new Scene(root, 500, 575)); secondaryStage.setTitle("Captcha Solver"); secondaryStage.initModality(Modality

How can i get the data which has been generated using load html feature of JavaFx WebView?

百般思念 提交于 2020-05-31 06:17:11
问题 I have a JavaFx Application where I am loading the HTML page. The HTML generates a Base64 which is being written to a file once it is loaded using Javascript bridge. I am trying to get this Base64 data once it is written from the main class. Can anyone please let me know how can i achieve it ? Below is the code Test.java public class Test { public static void main(String[] args) throws InterruptedException { String input = "[{'name': 'sub','description': 'sub','length': 25,'diameter': {'outer

Ajax call fails with Javafx Webview

▼魔方 西西 提交于 2020-02-02 10:14:26
问题 Followed this, though Ajax calls from link executes without any errors, having below function in a HTML fails still $(document).ready(function() { alert("Ready"); $.ajax({ url: "https://www.google.com/", type: 'GET', cache: false, data: "{'name':'hi'}", contentType: 'application/json', dataType: 'json', async: true, success: function(res) { alert('success res-:' + JSON.stringify(res)); }, error: function(res) { alert('error res-:' + JSON.stringify(res)); } }); Update Java Code import javafx