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
0
votes
0 answers
WebEngine isn't loading anything
No errors whatsoever, it just doesn't display anything and when I try and debug the loaded page's title it returns null.
@Override
public void start(final Stage stage) throws Exception {
WebView view = new WebView();
WebEngine engine =…

Jasper Ketelaar
- 86
- 4
0
votes
1 answer
Java getting text content from an element to include line breaks
I have an Element which I got from the Document of a WebEngine (JavaFX) and I use its getTextContent() function from the body element to get the text content. The body element has the attribute contenteditable="true" so I can write on it. However…

user2513924
- 2,070
- 3
- 15
- 23
0
votes
2 answers
How to disable all actions of hyperlink and submit form but can drag these elements
I use JavaFx WebView to show a web page but I don't want to have any interaction(location change) on web page and web engine disabled Javascript also. Because of that reason, I tried to disable all actions of hyperlink and submit form by
a[style] {
…

Nam Nguyen
- 61
- 6
0
votes
0 answers
JavaFX webview correctly block certain URLs
I am trying to block URLs with a certain keyword in a JavaFX webview. So far, I have tried using webEngine.locationProperty().addListener() to listen for a change in state. While this is successful in blocking the URL, it unfortunately leaves the…

fdsa
- 1,379
- 1
- 12
- 27
0
votes
1 answer
JavaFX script not working after changing pages
As noted above, once the user clicks on something that changes the page, the scripting using JavaFX no longer works.
hello.html
bye
byebye.html
hello
JavaApp.class
public class…
theAnonymous
- 1,701
- 2
- 28
- 62
0
votes
1 answer
Font Issue - Javafx in Ubuntu
I have faced problem in Javafx with font in both Windows and Ubuntu.
In Ubuntu, Some Lable text are not display but I check in windows OS it will work perfect.
Any Solution Regarding this Problem.??
Here I have Uploaded two image...
This image…

Maulik Patel
- 2,742
- 4
- 19
- 28
0
votes
0 answers
JavaFX integration with Spring rest client
i have implemented Java Spring Rest client application, each rest am geting input xml file , and taxking that file according file values am select jsp file showing in Javafx Webview, once ur transaction completed i need to close that webview window.…

venu
- 2,971
- 6
- 40
- 59
0
votes
1 answer
How to set WebEngine worker state to SUCCEEDED
I'm having an issue with a program I'm working on... I have a listener for the webengines worker state, so that when state = SUCCEEDED it will carry on with the rest of the code.
The problem is that the website I'm loading has a lot of ads and takes…

user3513071
- 161
- 1
- 3
- 10
0
votes
1 answer
How to stop WebEngine after loading for too long?
I'm currently creating an automated bot to go into a certain website and do repetitive tasks. I'm using JavaFX and the WebEngine to do this. The problem is, this webpage sometimes takes a long time to load, and I don't necessarily need it to fully…

user3513071
- 161
- 1
- 3
- 10
0
votes
1 answer
Html dropdown box in javaFx webEngine
I'm using this java SimpleSwingBrowser example to display a html dropdown box like this with the javaFx webEngine:
0
votes
1 answer
Build swing project using the JavaFX Browser / WebEngine (Gradle)
I'm trying to build an application using the JavaFX WebEngine inside of a swing gui. Gradle complains about not finding the JavaFX packages. How can I tell gradle to include the appropriate jar?

MeinAccount
- 523
- 2
- 6
- 21
0
votes
2 answers
why is the message showed "To view the content on this page,Please click here to install JAVA"?
we are developing an JavaFX application.
i'd like to start this application by web start throu WebSite, but the message("To view the content on this page,please click here to install Java") is showed.
So, i cannot start this application. what…

hiro
- 3
- 2
0
votes
1 answer
how can I load invalid certification web page using JavaFX.
Hi I am trying to load web page in webView pannel in JAVAFX.
I am able to load the web page whose certification is valid like google,yahoo. But unable to load invalid certification Sites.
Please suggest how can I add certification to my Web…
0
votes
2 answers
Java - how to use html in resource load image on local device
I'm using WebEngine(WebView) load html file in resource
URL mapURL = getClass().getResource("/com/yoouppos/resources/aaaaa.html");
webEngine.load(mapURL.toExternalForm());
And aaaaa.html contain image tag

wind
- 63
- 1
- 3
- 9
0
votes
1 answer
Why can't I embed Ace Editor into WebView?
I am attempting to make a simple editor in JavaFX 2.2. I downloaded Ace Editor repository and created a test page which works fine when double clicked.
However, it does not work when I try to embed it into the WebView.
SSCCE:
package…

An SO User
- 24,612
- 35
- 133
- 221