WebEngine is a non-visual object capable of managing one Web page at a time. It loads Web pages, creates their document models, applies styles as necessary, and runs JavaScript on pages. It provides access to the document model of the current page, and enables two-way communication between a Java application and JavaScript code of the page.
Questions tagged [javafx-webengine]
264 questions
2
votes
0 answers
Ajax call fails with Javafx Webview
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:…

Samy
- 2,387
- 2
- 17
- 31
2
votes
2 answers
JavaFX WebView is not working with spring boot maven
I have created the Spring boot JavaFX application with scene builder. When I add the WebView component in my FXML file I am getting the below error:
Caused by: javafx.fxml.LoadException:…

Praveen Dhasarathan
- 648
- 2
- 11
- 24
2
votes
1 answer
Discord OAuth2 redirect url fails to display with JavaFX WebView JDK12
I am trying to get the following site: link to discord OAuth2 URL (hover me to see link) to load with JavaFX WebView in JDK12. When I try loading that site, all that is shown is a white page. The following code is what is used to display, and handle…

Corbin
- 77
- 7
2
votes
1 answer
MathML tags don't render properly in JavaFX WebView
MathML tags don't render properly in JavaFX WebView
JDK Version : 1.8.0_192
For example,

Rinish Sam
- 145
- 2
- 8
2
votes
0 answers
JavaFx WebView Javascript changes eat up CPU
I have a project that is running AngularJs website inside an JFX webView. Whenever some javascript is running in a loop the CPU goes up to 100%. To be more specific I have a
$scope.moveFloatingBanner = function () {
try {
var dx =…

Irakli Kobalava
- 21
- 6
2
votes
1 answer
Javafx calling javascript to excute java function in webview not working
According to the JavaFX docs, you can execute Java code with JavaScript function. Below is my code:
engine = webview.getEngine();
engine.load("http://localhost:8080/testing.php");
openExcel callback = new openExcel();
JSObject window = (JSObject)…

Mclareen Rochester
- 33
- 7
2
votes
0 answers
Add new entries to JavaFX WebEngine history programmatically
This might seem strange but i have a specific reason.
Example
Mozilla Firefox allows you when you click the middle mouse button on the next or previous arrow from the top url bar , to open a new tab -> which also remembers the history of the…

GOXR3PLUS
- 6,877
- 9
- 44
- 93
2
votes
0 answers
How do I get the results of deferred JavaScript execution when using JavaFX WebEngine.executeScript?
When executing a JavaScript in a WebEngine, how do I get the DOM using WebEngine.getDocument after the results of any deferred script execution? Here is the minimal code to demonstrate the question.
The following HTML when rendered in a standard…

Danger
- 2,043
- 2
- 21
- 24
2
votes
0 answers
JavaFX WebEngine get HTTP response codes
I am trying to use the JavaFX WebEngine to access a website. To work properly, my application needs to know the http response code returned by the website and preferably also the response message. Is there a way to access this data over the…

Joba
- 777
- 7
- 24
2
votes
0 answers
How load website in WebView JavaFX, if that asked *.pfx certificate?
I'm using javafx.scene.web.WebView. Other websites loads fine, but one give me clear white WebView. When I'm load it in Google Chrome, I see the window, that asking my installed certificate, I confirm, ant website loads. Certificate is in *.pfx…

Nick Konorev
- 71
- 1
- 5
2
votes
1 answer
Executing multiple scripts with WebEngine (or a script that depends on another script)
I want to use the WebEngine (of JavaFX) to execute some JavaScript (and jQuery) on web pages and process the results (with Java code).
I have a problem with callback functions that execute some script by themselves.
For the purpose of illustrating…

LionGod8
- 368
- 2
- 9
2
votes
0 answers
ContextMenu on Webview is not displaying correctly in JavaFX
I have a webview where I have given context menu options based on the type of HTML elements. Few elements have 3 menu items and few other elements have 6 menu items.
Above two images are some examples. On right clicking a text field, I'm getting 6…

NaveenBharadwaj
- 1,212
- 5
- 19
- 42
2
votes
1 answer
Leaflet Map in JavaFX WebEngine
I'm having some Problems with Leaflet in the JavaFX Webengine. I want to visualize GPS tracks with the geoJson format. The code listing below shows the HTML and JavaScript code I have developed so far.
A Leaflet…

Trynx91
- 33
- 4
2
votes
1 answer
How to debug problems with the javafx native bundle for Windows?
I'm trying to package a JavaFX/DukeScript application into native bundles.
For Windows that's achieved with Inno Setup, that's what the javafxpackager uses.
I can't find much documentation about it, so I'll create a question and provide the answers…

ZiglioUK
- 2,573
- 4
- 27
- 32
2
votes
2 answers
Hindi font is not proper rendering on webview browser using javafx
I am using webview component in javafx 2.0. Problem is that, web view is not rendering properly hindi font in the webview.Same code is rendering properly in some system, but not rendering on others. so plz give me any suggession. Or is there any…

Abhishek Kumar
- 29
- 4