Questions tagged [openjfx]

The tag has no usage guidance.

0
votes
0answers
11 views

The import javafx cannot be resolved in Visual Studio Code

I'm using openjdk-11, openjfx and Visual Studio Code on Ubuntu 18.04. When importing or using a javafx function, the linting says The import javafx cannot be resolved. When I try to launch or build ...
1
vote
0answers
34 views

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 ...
5
votes
1answer
94 views

How to use CSS to style the borders of two adjacent TableViews so that they appear to be a single TableView in JavaFX 11 (OpenJFX 11)

A CSS newbie question. I'm displaying a wide set of data in two adjacent TableViews and have bi-directionally bound their ScrollBars, FocusModels and SelectionModels to keep them in synch. I'm now ...
0
votes
0answers
31 views

Run OpenJFX with OpenJDK 8?

I try to run a OpenJDK 8 app with a JavaFX (openjfx) UI. When I try to compile my code I get the following error: class file has wrong version 55.0, should be 52.0. So my question: Are they not ...
0
votes
0answers
21 views

Running OpenJFX Media Player with Java EE [duplicate]

Trying to get JavaFX MediaPlayer to read file information in Java EE / Java 11 I am working on a Java EE 7 project, using maven, that allows audio files to be uploaded. To read information from the ...
1
vote
0answers
68 views

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 ...
0
votes
0answers
58 views

I cannot use JavaFX libraries even though I have installed openjfx

OS: Ubuntu 18.10 IDE: NetBeans 8.2 Java: 1.8.0_191; OpenJDK 64-Bit Server VM 25.191-b12 Runtime: OpenJDK Runtime Environment OpenJDK: 8 openjfx Version: 11+26-4 Hello, I tried to install openjfx ...
0
votes
0answers
28 views

Is there anyway to force bluej to build & execute javafx application with the -Djdk.gtk.version=2 flag?

When I try to launch a JavaFX program using BlueJ, the program has no titlebar and is just generally buggy, I know the fix for this is to compile and execute the program with the -Djdk.gtk.version=2 ...
5
votes
1answer
93 views

JDK 11 and JavaFX 11: build for ARM (Tinker Board) not running (hash mismatch)

I have a JavaFX 8 project which I develop on Windows 10 with NetBeans 8.2. The JAR I build from this I have running on an Asus Tinker Board. With JDK 11 and JavaFX 11 I want to take advantage of a ...
3
votes
0answers
92 views

How to create a standalone application using JavaFX 11 (Modular)?

I'm following the tutorial here and using openjdk 11.0.2 and javafx-sdk-11.0.2. I've imported the maven project in Eclipse. The project actually compiles and packages just fine. It also created the ...
1
vote
1answer
100 views

Is it possible to use javapackager on ZuluFX for Mac

I was able to use ZuluFX 8 with javapackager on Windows. However, on a Mac I get this error: Bundler Mac Application Image skipped because of a configuration problem: Cannot determine which JRE/JDK ...
2
votes
0answers
101 views

Any idea how to fix this? Exception in thread “WindowsNativeRunloopThread” java.lang.NoSuchMethodError

My application uses javafx 11.0.1 and is shipped bundled with a jlinked version of openjdk 11. It runs fine for the vast majority of the users but few of them are getting this stack: Exception in ...
0
votes
2answers
49 views

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 ...
1
vote
0answers
31 views

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....
1
vote
0answers
21 views

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....
0
votes
0answers
1k views

JavaFX runtime components are missing, and are required to run this application for openjfx 11 in powershell

I am trying to run a jar file build in intellij idea with maven framework in powershell. java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(...
0
votes
1answer
75 views

Openjfx - IntelliJ - Maven: InvocationTargetException when creating an Item

I tried to setup Openjfx with IntelliJ, but went into a compiler error though following this post: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000909940-Openjfx-11 If I do not ...
0
votes
0answers
146 views

superclass access check failed: class com.sun.javafx.sg.prism.web.NGWebView

I have just installed SDK 11 and using Javafx from maven. My pom is as follows. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="...
1
vote
1answer
54 views

jdeps command failing when trying to resolve OpenJFX jmods

I am trying to run a jdeps command on a project that uses OpenJFX, but it keeps failing. The command I am using, simplified as much as I can: jdeps --module-path Y:\javafx-jmods-11.0.2 --add-modules ...
0
votes
1answer
29 views

“already signed” error when trying to sign openjdk

We recently switched from oracle jdk to openjdk. When we try to build and sign our application with the javafx-gradle-plugin, we get an error in the signing process. We already tried to get codesign ...
0
votes
1answer
140 views

Java 11 (OpenJDK 11.0.2) + OpenJFX 11.0.2: module X reads package Y from both W and Z

Recently I build a simple JavaFX application and I used OracleJDK 10 with it's JavaFX, after that, I've made a decision to update to Java 11 (OpenJDK 11.0.2) + OpenJFX 11 - I got the build errors ...
0
votes
0answers
15 views

JavaFX Nested Controller with constructor causing “NullPointerException: Root cannot be null” [duplicate]

Making a javafx11 fxml gui. There is a main fxml "testingScreen" and a "BinaryIndicator" which I have include in the "TestingScreen" each with their respective controllers. BinaryIndicator's ...
0
votes
1answer
397 views

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 "...
0
votes
1answer
122 views

Unable to run simple HelloWorld JavaFx Application on a Raspberry Pi Model 3 and Java 11

I'm unable to run the Gluon JavaFx sample. I did all the step described with the exception of taking the newer Liberica JDK 11.0.2 instead of the preview and pointed the JAVA_HOME variable to the ...
0
votes
0answers
47 views

Openjfx GDK3 “Bug” with drag n drop - workaround?

With GTK3 Javafx seems to call a GTK2 function that is no longer valid. Is there any way to get around this? To reproduce you can use a stock debian(stretch) Mate destop with stock Openjdk 11 ...
2
votes
1answer
51 views

FX 11: Controller loading in Baseclass

Injecting FXML into a derived FX Class(Controller) from the base class works - but why? The code below is actually working. But i am curious why? The FXML is loaded in the constructor of the ...
8
votes
2answers
252 views

OpenJFX support for 32-bit systems

I would like to build my JavaFX app for Windows x86 arch. So I've downloaded Adopt OpenJdk 32-bit build and used it to create Java Runtime Image. When I'm trying to run application I get the following ...
2
votes
1answer
50 views

HeadlessException in JavaFX on MacOS X with OpenJDK 10 and OpenJFX

I'm getting the error java.awt.HeadlessException: null at java.desktop/java.awt.Desktop.getDesktop(Desktop.java:306) ~[na:na] when calling Desktop.getDesktop().open(pdfFile); I am using ...
0
votes
1answer
129 views

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 ...
0
votes
0answers
162 views

UnsatisfiedLinkError occurs on openjfx webkit(32bit)

In order to use webview with amazoncorretto 8 (32bit), I want to build 32bit openjfx. I could create a library, but when I use it I get an UnsatisfiedLinkError. Build it with reference to the ...
3
votes
1answer
666 views

Package a non-modular JavaFX application

I have a Java 8 application, that uses JavaFX and where the main class extends javafx.application.Application . Currently, I deliver it as a fat jar and it runs fine on Oracle Java 8. Now I want it ...
1
vote
1answer
73 views

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 ...
1
vote
1answer
31 views

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 ...
0
votes
0answers
17 views

How to create modular desktop application using openjfx11

Suppose we have a parent component which can load many no of independent child components and the parent run them independently. Example: Module 1 mod1.fxml Application. Java ...
1
vote
2answers
236 views

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 ...
1
vote
1answer
61 views

Firing a caught event

This question is so obvious, and I am sure that it is so easy to solve that I wonder why no simple and easy to understand answer hes been posted yet. I’ve found answers explaining how to create a *new ...
1
vote
1answer
346 views

JavaFX - How to fix 'fx:controller can only be applied to root element'

I have created a simple borderless application with JavaFX. Now I created a Label which should replace the missing "close" button. Actually, my attempt is not working because I am not able to interact ...
0
votes
0answers
38 views

OpenJFX 11 creates undecorated windows on unix [duplicate]

I am using OpenJFX 11 and set it up according to the documentation here: https://openjfx.io/openjfx-docs/#install-javafx I used their HelloFX example and compiled it like this: cromon@cromon-...
3
votes
0answers
1k views

Cannot Launch JavaFX application in IntelliJ with Java 11

I am trying to create a JavaFX application with IntelliJ and Java 11. I can compile the application correctly, but when I try to debug it, I get the following error: Exception in Application start ...
-2
votes
1answer
220 views

How can I fix this JavaFX problem in the 11 Java JDK version?

I currently have a weird problem in " Intellij IDEA Edition 2018.3.1 " and when I run my JavaFX program I always get thrown out an error. Just because I added a few lines of code. The error: "C:\...
0
votes
0answers
106 views

OpenJFX packaging with application

I am trying to work with JavaFX/OpenJFX. I see that it has dependencies with platform classifier, e.g., javafx-graphics, for common platforms (Windows, Linux, etc.). I am looking ahead and I am ...
5
votes
0answers
260 views

Problems with touch input and OpenJDK 11 with JavaFX 11

I'm working on a JavaFX project and would like to switch from Oracle JDK 1.8 to OpenJDK 11. So far the transition has been pretty seamless, but there is still one main problem related to touch/mouse ...
2
votes
1answer
417 views

JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)

I have a problem with my modular JavaFX application. I created a JavaFX project and added the JavaFX lib and JavaFX modules get recognized. However, I keep getting these error message: Error ...
0
votes
1answer
240 views

JavaFX11 and Intellij

I followed the instruction in this link https://openjfx.io/openjfx-docs/#install-javafx and when i run javafx sample i get this error Error:(3, 26) java: cannot access javafx.application....
0
votes
1answer
62 views

Showing Stage/Dialog more than once in javafx application that is launched by Platform.startup() [duplicate]

I am building an application that is running in the background and provides access to a control panel (JavaFX Dialog) by clicking on the icon on the SystemTray. JavaFX 9 adds the ability to launch ...
0
votes
1answer
50 views

OpenJFX only renders Parts of a Window when run on Ubuntu

EDIT: After some testing with options it turns out that when call: stage.initStyle(StageStyle.UNDECORATED) on the stage it resolve this problem of the window not showing, but then the window does not ...
3
votes
1answer
430 views

Simple Java 11 JavaFXprogram, Error when run from JAR file (Windows)

I have a test JavaFX program that runs fine in Eclipse. - I had to add a module-info file (module-info.java) containing the following: module moduletest { requires javafx.controls; exports ...
2
votes
1answer
314 views

Modules not found that are required in module-info.java

All the required modules I've declared in module-info.java are not being found when I run gradle: /Users/Joseph/eclipse-workspace/CheckMyDigitalFootprint/src/main/java/module-info.java:10: error: ...
0
votes
0answers
65 views

How to compile a Maven JAR file with JVM args use a plugin?

I'm looking for a Maven plugin that could execute by itself the good JVM arguments. For now, I've tried using the maven-compiler-plugin and the maven-surefire-plugin (the pom of my project is down ...
5
votes
0answers
2k views

javafx.controls could not be found JavaFX 11 / JDK 11.0.1

I am using InteliJ, I've gone through all other solutions that seem to work for everybody else. I was getting an error: Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml....

http://mssss.yulina-kosm.ru