273 questions
3
votes
0
answers
106
views
JavaFX WebView: window.crypto.subtle is undefined
I try to display my website in a JavaFX WebView component, but the page fails to load. I get a blank page.
The site uses the JavaScript library angular-auth-oidc-client to redirect to WebSSO. After ...
2
votes
0
answers
78
views
JavaFX RuntimeException: Illegal texture dimensions (2147483647x37)
I am encountering a similar issue as JDK-8177629 with JavaFX 21 on Intel Iris Xe Graphics; it seems like this issue is also present in Javafx20 as commented by Andy Goryachev
We are in progress of ...
0
votes
0
answers
53
views
Load tinymce in JavaFX Webview
We have a JavaFX WebView that needs to load a simple HTML page containing a tinymce v4 editor. This works fine in older versions of Java (Java 11). But in Java 21, tinymce v4 doesn't load in the jfx ...
0
votes
0
answers
96
views
JavaFX WebEngine: Can not set user-agent header
I am trying to add new headers in requests/responses of webpages that are displayed in WebView.
After research, I found that the easy way to add headers is to set the user-agent header.
My problem ...
2
votes
2
answers
367
views
Issue with displaying a location on Google maps using Java+JavaScript+JavaFX
I've been trying to create a Java desktop app using Java, JavaScript and JavaFX and one part of the app should be able to display a location on the map using the location of the venue taken from the ...
-1
votes
1
answer
80
views
Application crash on WebCoreTestSupport::allowsAnySSLCertificate
When running an JavaFx application (from IntelliJ), using a webView/webengine, the application crashes when the webapp does (multiple) redirects ...
# A fatal error has been detected by the Java ...
0
votes
1
answer
90
views
JavaFx WebView element selection. (JavaScript)
I have a WebView element, which render a html code. I want to create getSelectedIndices and setSelectedIndices method. Getter works, Setter throws IndexSizeException.
How can I set the selection area ...
1
vote
1
answer
384
views
java.lang.reflect.InvocationTargetException in Application start method [duplicate]
I'm working on a gui app, using javafx. I tried running the Main app, but I keep getting an error.
Exception in Application start method
java.lang.reflect.InvocationTargetException
at java....
0
votes
0
answers
220
views
Why am i getting an error when I run javafx webview?
my project structure
So I imported everything I need for javafx webview. I also added the vm arguments in eclipse, which are these:
--module-path /Users/easwar/Downloads/javafx-sdk-21.0.1/lib --add-...
0
votes
1
answer
155
views
Clicking on menu item "open in new tab" on webview does not open webpage sometimes, other time it does open
I have a piece of code in JavaFX which creates a small web browser. The web page is shown in a web view. I have managed to get custom context menu popped up by right clicking on the links on the ...
1
vote
0
answers
205
views
Trying to act on a page redirect with JavaFX and WebView
I am trying to script logging in to a 3rd party site to obtain a value. For several years I was able to use javaFX to do this, but it recently stopped working. I have tried using selenium with some ...
0
votes
3
answers
321
views
jar image from jlink does not show org.kordamp.materialdesign2 icons but they load when program is run in intellij
javafx applications not showing org.kordamp.materialdesign2 icons
I recently completed a school management program with JavaFX 18 which runs properly using the normal IntelliJ run configurations but ...
1
vote
0
answers
294
views
Certificate selection popup doesn't comeup when server asks for client certificate using Javafx webview
While logging to IDP server with user credentials on webbrowser, It asks the browser to present it's certificate and a certificate pop up appears on browser listing the certificates installed on the ...
0
votes
1
answer
222
views
Get user input from textfield to load website of their choice
I'm making a web browser using JavaFX and currently running into an issue. The function that have to allow the user to visit any site they want doesn't work. What I tried to do is use the getText() ...
0
votes
0
answers
150
views
Refresh WebView contents from a JS bridge in JavaFX
I am creating an AppDrawer (all in one place to launch shortcuts).
My JSCallBack bridge class has a method that should delete a shortcut, then refresh the page. But, it is unable to successfully ...
0
votes
0
answers
254
views
JavaFX WebEngine crashes after loading a web page with a video tag
I'm new to Java and developing a background previewer application for steam profiles in JavaFX to improve myself in Java.
After loading any steam profile page with an animated background into the ...
1
vote
0
answers
293
views
javafx.WebView not open local site with socket.io
I've noticed strange behavior in javafx.WebView version 14-ea+4 and up.
If you open https://socketio-chat-h9jt.herokuapp.com/ in javafx.WebView of any version, then there will be no problems. The site ...
1
vote
1
answer
316
views
Javafx.webView not opening local page in NodeJS server
I have a minimal javafx webview and a nodeJs server code. But webview doesn't open its local page (http://localhost:8000/), after loading the page, the status is CANCELLED. Full sequence of statuses: ...
0
votes
1
answer
374
views
Connection refused by server and Unknown error javafx.web after loading page with port 3000
When loading http://127.0.0.1:3000 I get this error:
java.lang.Throwable: Unknown error
at [email protected]/javafx.scene.web.WebEngine$LoadWorker.describeError(WebEngine.java:1444)
at ...
1
vote
1
answer
334
views
Why does JavaFX's WebEngine not display images when providing a path without scheme?
JavaFX's WebEngine, which is part of the WebView node, does not seem to be able to display images whose paths are declared as a "normal" file path, like /home/user/images/image.png, unlike ...
0
votes
2
answers
179
views
JavaFX Webview on Mobile does not receive any TouchEvent
I am trying to do a simple Demo about using JavaFX on Mobile using GluonFX Pluging & Attche.
The App, Will be Simply WebApp. The Main problem now is When the user click on any text input field, ...
0
votes
1
answer
101
views
How to set an action to occur whenever JFXPanel is closed?
I'm building a Swing application and I'm using JFXPanel to bring up a WebView for user authentication. I need to return the url that the WebEngine is sent to after a successful user sign-on- but I don'...
6
votes
2
answers
2k
views
How to debug JavaFX webview in 2022
How to debug a JavaFX webview?
I find two ways,
one is to attach external chrome debugger to JavaFX webview.
Another is to inject firebug javascript.
Method#1 seems to use a bit of hacks like set ...
2
votes
1
answer
566
views
JavaFX access internal webkit document
I am trying to access javafx.web/com.sun.webkit.dom from my unnamed module javafx project. For this, I have created a class com.sun.webkit.dom.DomMapper.
I do not see any error in the IDE, but when I ...
0
votes
0
answers
114
views
Background color rendering issue with HTMLEditor JavaFX8
Problem : So basically the problem is that when I do change background color at 12pt font size and then I increase the font size to let's say 36pt then the background color is not properly rendered ...
0
votes
1
answer
259
views
jfx webview with Basic auth does not notice that it is logged in at the first attempt
First of all, beginner here.
Goal:
I would like to access a page of my wiki(xWiki) with basic authentication and Openjdk 8.
Problem:
It doesn't recognize on the first attempt that im already logged in ...
0
votes
0
answers
646
views
com.sun.javafx.webkit.Accessor doesn't work
when I try to get a WebPage with the class com.sun.javafx.webkit.Accessor, I always see the following exception:
Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessError: ...
3
votes
2
answers
2k
views
Module not found: javafx.web
I wanted to create a WebView with Javafx, and I added requires javafx.web; to my module-info.jar, but IntelliJ say: "Module not found: javafx.web".
requires javafx.controls;
requires javafx....
0
votes
0
answers
136
views
Javafx webview don't work properly with arabic characters
When I switch from Azul Zulu jdk (that has Javafx) to Amazon Corretto Jdk, the WebView instead of showing the string "عربي" it shows a series of vertical rectangles ▯▯▯▯▯▯.
My line of code ...
1
vote
0
answers
166
views
What Javafx WebEngine settings can I change to allow google to let me load the YouTube homepage?
Basically I want my javafx WebEngine to display the youtube homepage. My code to start up the browser is shown below.
browserWebView.getEngine().setJavaScriptEnabled(true);
...
0
votes
1
answer
87
views
Javafx webhistory entries insert duplicate browsing histories when I use the textfield assigned for addressbar
Hi I am working on my web browser javafx project where I am storing my browsing history into mysql. There is a bug where everytime I use the addressbar to browse new websites, the history entries ...
7
votes
2
answers
1k
views
Leaflet does not work in WebEngine after JavaFX 17
I have an application made with JavaFX 16 which contains a WebView used to show an interactive map using the Leaflet JS library.
I have a problem when I try to transition to JavaFX 17, the interactive ...
0
votes
0
answers
261
views
JavaFX Make WebEngine setUserStyleSheetLocation detect CSS file in a JAR
I'm trying to style a JavaFX WebEngine using the setUserStyleSheetLocation method. The method's documentation says it requires a "local URL" starting with data:, file:, jar:, or jrt:. I want ...
-1
votes
1
answer
479
views
JavaFX: How do I get a specific tab to perform an action
I am a high school student who's new to Java. I'm trying to create my own simple web browser using Java Fx and I ran into a problem. I have a dedicated tab named "+" and I want this to ...
4
votes
1
answer
2k
views
javafx 16 WebEngine Exception "SSL Handshake failed"
I am porting an android app to javaFX for windows deployment, i'm new to javaFX and desktop deployment, but not so new to java.
The app contains a WebView that loads a url obtained from a server via ...
0
votes
1
answer
723
views
Printing a javafx WebEngine's content on multiple pages
I want to print the content of a WebEngine:
PrinterJob job = PrinterJob.createPrinterJob();
job.getJobSettings().setJobName("Print WebEngine");
job.getJobSettings().setPageLayout(job....
1
vote
0
answers
220
views
Javafx webview not displaying dash-plotly app on run
I am trying to integrate a Dash-plotly application into a Java application.
I have created a Plotly-Dash app that looks like this:
The Dash app component of the code is like this:
app = dash.Dash(...
0
votes
2
answers
797
views
How do I make the background of a WebView transparent?
I have a Maven project in IntelliJ IDEA, using JDK 15 and JavaFX 15.
I tried:
Set style for WebEngine
Set blend mode for WebView
Tried WebPage
Nothing succeeded. How do I make the background of the ...
0
votes
1
answer
907
views
Loading localhost content from a javafx bean inside springboot backend
Im trying to host javafx application within a simple springboot application, using web and thymleaf.
It serves up static html to local host, and i can get this content both from the browser and trough ...
1
vote
1
answer
213
views
Call JavaScript function from JavaFX before loading
I need to initialize some variables in JavaScript from JavaFX WebEngine before actually loading the html file. My .html file looks something like this:
<!DOCTYPE html>
<html>
<head>
...
-1
votes
1
answer
1k
views
Exception in Application start method [Java FX]
I am trying to create a button in JavaFX using Scene Builder but I am having some issues. Here is my code :
MainDesign.java
package application;
import javafx.application.Application;
import javafx....
1
vote
1
answer
270
views
Why I'm unable to invoke Java methods from html content via the JavaScript call in JavaFX WebView?
I'm working on a task which needs to invoke a java method from a html content. This is a swing application and I used JavaFX WebView to load the HTML content into the application. But when I tried to ...
0
votes
0
answers
173
views
Java method called WebEngine (by JavaScript) is not executed after first loading the content in WebEngine
I'm working on an application that reads a method (println()) from the Java code in the JavaScript code in a local HTML file that is loaded by WebEngine when the user selects an item in ComboBox.
The ...
0
votes
1
answer
116
views
How to Call to a UI variable of JavaFX from javascript in WebEngine?
I'm working on an application that needs to read a local file and display it in WebView, based on user input (in ComboBox).
I'm trying to call to a variable in the JavaFX UI from JavaScript and it ...
0
votes
0
answers
43
views
JFrame freezing onclick until the return value is calculated
I have a WebEngine-based JFrame. In JS page code I call java openFiles() method and expect a json string as answer, like this: var jsonArray = java.openFiles();. If user has selected some files, I ...
0
votes
1
answer
721
views
Unable to display video in webpage using javaFx Webview (video is live on the given url)
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 ...
1
vote
1
answer
522
views
How can I get the data which has been generated using load HTML feature of JavaFX WebView?
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 ...
1
vote
0
answers
339
views
Server Sent Events Not Working Using JavaFX WebView
I have developed a single page application with React and MobX. To get some progress information from backend code such as copying a file progress, I use Server Sent Events and EventSource at ...
-1
votes
1
answer
35
views
select element display error in WebEngine of JavaFX
See image:
This is very ugly.
thanks.
0
votes
1
answer
125
views
Print WebView/WebEngine with auto page break
I have some HTML text like
<h1>lorem... </h1>
<b> Lorem text going on...
and I want to print the HTML on any printer
WebEngine webEngine = WebView.getEngine();
webEngine....