openjfx

Missing titlebar on javafx app, with OpenJFX

十年热恋 提交于 2020-01-30 12:03:07
问题 I'm currently building an application with OpenJDK 11 and OpenJFX. It compiles just fine, and starts, but there is no titlebar, and if i click close to the edge of the app, it registers as a click on whatever window is behind it. I am using intelliJ idea, and it took a while to figure out how to even use openjfx with it, anyhow, here's the system details: running elementary OS 5.0 Juno (based off of Ubuntu 18.04, everything is GTK) IntelliJ Idea (Community) 2018 installed as a snap. OpenJFX

OpenJFX support for 32-bit systems

南笙酒味 提交于 2020-01-23 04:47:06
问题 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 error: Loading library api-ms-win-core-console-l1-1-0 from resource failed: java.lang.UnsatisfiedLinkError: C:\Users\admin01\.openjfx\cache\11.0.1\api-ms-win-core-console-l1-1-0.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform java.lang.UnsatisfiedLinkError: C:\Users\admin01\.openjfx

How to open JavaFX .jar file with JDK 11?

二次信任 提交于 2020-01-18 16:08:35
问题 I created a JavaFX project in IntelliJ. I can run project in IntelliJ. I added below code in Configurations): --module-path ${PATH_TO_FX} --add-modules=javafx.controls,javafx.fxml But the output .jar file of project (made with Artifects) doesn't run. I tested these commands, but didn't get any chance: java --module-path %PATH_TO_FX% --add-modules javafx.controls,javafx.fxml -jar Timer.jar java --module-path %PATH_TO_FX% --add-modules javafx.controls Timer.jar Last error log of command line:

Alert in JAVA FX

醉酒当歌 提交于 2019-12-31 03:44:08
问题 I want to display an alert when a file already exists when trying to create the file with same name . I have not completed the code fully. I want to retrieve the button value Yes/No from the UI . Code: This is how the controller is coded. package application; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.URL; import java.util.Map; import java.util.ResourceBundle; import java.util.Set; import java.util.TreeMap; import org.apache.poi.ss

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

核能气质少年 提交于 2019-12-30 06:33:46
问题 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.FXMLLoaderHelper (in unnamed module @0x5782d366) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x5782d366 I then added the following to VM options in the run config: --module-path="C:\Users\mresp

Migrate to openJDK 13 and openJFX 13

江枫思渺然 提交于 2019-12-25 01:24:38
问题 I had to switch to openJDK coming from JDK8 and I am not able to compile my program with maven. This is new to me and after days of googling I am more confused about the versions than I was before. I could not find out: Am I supposed to use the latest version of openJDK? (which is currently 13) Does the openJFX has to match the version of openJDK? Maven: Do I have to compile it with source and target with 13 or is it possible with 1.8 to be compatible with JRE1.8 Here is what I did in Eclipse

Automatic module VM options for jar file

不打扰是莪最后的温柔 提交于 2019-12-24 20:22:24
问题 So I am currently playing around with the new changes in Java 11 and thus the external OpenJFX SDK. However I guess it would be much easier for me to distribute one single jar file and let users download their required SDK stuff on their own and put it into a predefined folder inside the same folder as my jar. Now I am asking myself whether it is possible to automatically add the required VM options on launch of my jar without requiring the users of my program to launch it from the console

Running JavaFX application with JDK 11+

安稳与你 提交于 2019-12-17 16:16:36
问题 If I understand Oracle's announcments JavaFX won't be included to the JDK beginning with JDK 11 and will be only available as OpenJFX. What steps do I have to make as an software developer to allow my JavaFX application to be run with JDK 11+? Is there any good adivce? Will be OpenJDK available via Gradle? 回答1: JavaFX 11 will be available from Maven Central, so you will be able to include it in your project as any other regular dependency, using Maven: <dependencies> <dependency> <groupId

How to deploy a JavaFX 11 Desktop application with a JRE

眉间皱痕 提交于 2019-12-17 02:23:22
问题 I have a JavaFX (JDK 8) desktop business application, which uses Java Web Start for deployment. Users have Java 8 installed, and they simply go to the URL (a public URL on my AWS Linux server) and the application downloads / starts (using Web Start). I can easily update the application, too, by deploying new JARs to the server. Everything works well. However, Oracle has discontinued Web Start with Java 11, and in their “Java Client Roadmap Update” white paper, March 2018, they recommend

JavaFX 11 Deployment Failure: failed to create task or type javafx:com.sun.javafx.tools.ant:fileset

痴心易碎 提交于 2019-12-11 17:28:30
问题 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: Apparently intellij IDEA 1.x does not support java 11 I have downloaded the recent version and currently trying to redo the whole process FINAL EDIT: I have solved the problem by using java 8 on intelliJ IDEA 3.x and followed this guide. Thank you hce!