Questions tagged [javafx-webengine]

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.

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 =…
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: