Questions tagged [openjfx]
229 questions
1
vote
1 answer
Running JavaFX Application on another machine
I'm trying to distribute a JavaFX application.
As an example project I took the JavaFX and NetBeans -> Non-modular with Maven. The code can be found here: GitHub: openjfx/samples.
On my machine this application works. But when I try to run that JAR…

Evgenij Reznik
- 17,916
- 39
- 104
- 181
1
vote
0 answers
I got a javafx.fxml.LoadException on a button
I didn't get Scene Builder Code running. I started with OpenJDK 11 and OpenJFX 11. The code is adopted from JAVA8 Example (https://www.youtube.com/watch?v=uPm1n-cyupU ).
I added a package name, needed for module-info. I added a…

v.montag
- 91
- 1
- 13
1
vote
1 answer
OpenJFX Custom runtime image using Maven and jlink - Module exports or command line arguments?
I'm trying to create a custom runtime image that will not require installed JRE/JDK on the computer. I have followed the tutorial presented on OpenJFX Documentation (JavaFX and IntelliJ - Modular with Maven) and I am able to run the created image,…

AndreiD
- 113
- 1
- 11
1
vote
1 answer
How to tell Java the correct file path in a JAR-file?
I have put all my JavaFX code into a executable JAR-file. Everything is inside there.
When I compile it with Eclipse IDE, it works, but when I try to execute the JAR-file, I get an error.
Caused by: javafx.fxml.LoadException:…

euraad
- 2,467
- 5
- 30
- 51
1
vote
1 answer
java.lang.IllegalAccessError with JavaFX and JFoenix
I'm trying to use the JFoenix library in Scene Builder.
This is what I have so far:
I added the Maven dependency:
com.jfoenix
jfoenix
9.0.8
…

Evgenij Reznik
- 17,916
- 39
- 104
- 181
1
vote
0 answers
Cannot build a JavaFX Maven project
I have installed openjdk-8 and openjfx, but I still cannot build any Maven project containing JavaFX elements. The Netbeans linting doesn't show any error, but when I click on "Build Project" the output shows:
Failed to execute goal…

Orbit09
- 205
- 2
- 6
- 13
1
vote
0 answers
TableView keyboard navigation - why does setOnKeyPressed behave differently in JavaFX11 (OpenJFX) vs JavaFX8 for keys like TAB, SHIFT+TAB etc?
I've upgraded my app from JavaFX8 to JavaFX11 (OpenJDK with OpenJFX) and am trying to resolve an issue wrt using the keyboard to navigate through TableCells in a TableView.
In JavaFX8, I used setOnKeyPressed to trap and process keys special keys eg.…

GreenZebra
- 362
- 6
- 14
1
vote
3 answers
Prevent Button from firing when enter or space is pressed Javafx
I have a button on a Scene, that whenever the space bar or enter key is pressed, this button automatically fires. I want the user to be able to type these keys without this button firing. I have already tried doing root.requestFocus() and calling…

Gabe
- 5,643
- 3
- 26
- 54
1
vote
0 answers
EventType "ADD_SENSOR" with parent "EVENT" already exists
I am developing a JavaFX application which uses the Apache Felix OSGi framework. I have an issue with firing custom events. Whenever I try to fire a custom event, the exception java.lang.IllegalArgumentException: EventType "ADD_SENSOR" with parent…

Lukas
- 756
- 7
- 20
1
vote
0 answers
JavaFX custom events with OSGi
I am developing a JavaFX application which uses the Apache Felix OSGi framework.
My issue is that when trying to register for a custom event the exception shown below is thrown.
org.apache.karaf.shell.support.MultiException: Error executing command…

Lukas
- 756
- 7
- 20
1
vote
1 answer
JavaFX 11 Deployment Failure: failed to create task or type javafx:com.sun.javafx.tools.ant:fileset
I am trying to deploy my project but I keep receiving the following errors, what should I do ? Also, I have java 11 but I can only select project language levels up to 10 in IntelliJ, yet I can use "var" syntax and run it. IntelliJ info:
EDIT:…

Altuğ Ceylan
- 93
- 1
- 10
1
vote
4 answers
How to run jlink-generated Java runtime image without CMD window?
I've created Java runtime image for a simple OpenJFX application. In order to run this app, jlink auto-generated two lauch scripts under %image_path%/bin directory. This how it looks like (the one for Windows):
@echo off
set JLINK_VM_OPTIONS=
set…

Evan
- 649
- 1
- 9
- 22
1
vote
1 answer
Can't run JavaFX application outside IDE when using javafxplugin and hibernate
I have a problem with the distribution of my JavaFX application using gradle:installDist. I reduced the problem to a basic example.
I have the following setup for my application:
OpenJDK 11
OpenJFX 11
Gradle 5.0
Hibernate 5.4
h2database…

C. Schmidt
- 100
- 1
- 6
1
vote
1 answer
Problem with extending SimpleStringProperty
I am just trying to extend a SimpleStringProperty in OpenJFX 11.0.1 to add some extra functionality. But ist seems not so easy, I experienced strange behavior of my extended Property and I don't know why. I think it should work.
My in this sample…

A. Rohmann
- 91
- 2
- 9
1
vote
2 answers
Maven can't find JavaFX
Build Failure on Maven:
package javafx.application does not exist
I'm using JDK 8 because JDK 11 doesn't have JavaFX included by default.
I have openjfx listed in my pom file as a dependency.
I have JAVA_HOME set to:
$JAVA_HOME
bash:…

Ashtin
- 11
- 1
- 2