javafx-11

Bundle JavaFX app with openjdk 11 + runtime

感情迁移 提交于 2019-12-10 14:45:09
问题 After reading that OpenJDK 11 will be supported long term, I decided to create a little app (using Gradle) to test a couple of things in combination with JavaFX. After some struggle, I managed to create a Hello World .jar file that opens fine. Now I want to get to the next step: run the .jar file without having to download anything Java related beforehand, because installing OpenJDK at the moment is a small pita by having to deal with setting PATH correctly etc. A search on bundling a OpenJDK

Use SceneBuilder with JavaFX 11 in IDEA

我怕爱的太早我们不能终老 提交于 2019-12-08 05:15:45
问题 I am using IDEA (with OpenJDK 11), and I am trying to use the SceneBuilder to display my FXML files. It works, except when I use inherited JavaFX components, for example : public class MyLabel extends Label { public MyLabel(){ super(); setText("42"); } } I always get an error : java.lang.UnsupportedClassVersionError: sample/MyLabel has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up

How to fix jvm options exports javafx 11 to com.jfoenix on gradle idea?

最后都变了- 提交于 2019-12-06 21:13:30
It's been 3 days that I look on the internet how to fix this on gradle Caused by: java.lang.IllegalAccessError: class com.jfoenix.skins.JFXTabPaneSkin (in module com.jfoenix) cannot access class com.sun.javafx.scene.control.behavior.TabPaneBehavior (in module javafx.controls) because module javafx.controls does not export com.sun.javafx.scene.control.behavior to module com.jfoenix On simple idea projects I was adding --add-exports javafx.controls/com.sun.javafx.scene.control.behavior=com.jfoenix --add-exports javafx.controls/com.sun.javafx.scene.control=com.jfoenix --add-exports javafx.base

Use SceneBuilder with JavaFX 11 in IDEA

青春壹個敷衍的年華 提交于 2019-12-06 16:21:19
I am using IDEA (with OpenJDK 11), and I am trying to use the SceneBuilder to display my FXML files. It works, except when I use inherited JavaFX components, for example : public class MyLabel extends Label { public MyLabel(){ super(); setText("42"); } } I always get an error : java.lang.UnsupportedClassVersionError: sample/MyLabel has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 So I looked in my IDEA installation folder (C:\Users\me\AppData\Local\JetBrains\Toolbox\apps

JavaFX setup in Eclipse: the option “JavaFX 11+ SDK” is for what?

心已入冬 提交于 2019-12-06 13:21:59
Trying to setup eclipse (2019-03) to develop with JavaFX 11. Installed e(fx)clipse 3.5.0. Have found several tutorials, but none of them explains what is this box (JavaFX 11+ SDK) in the window -> preferences -> javafx dialog (the same we setup the scenebuilder executable). Does anybody knows what is this for? Thought that I should only put here the folder where the Java11 SDK is, and all will work fine... but this is not the case. Thanks in advance. Best regards! 来源: https://stackoverflow.com/questions/55689045/javafx-setup-in-eclipse-the-option-javafx-11-sdk-is-for-what

TornadoFX unresolved JavaFx

六眼飞鱼酱① 提交于 2019-12-06 08:22:33
I wanted to create a new project that should be a desktop application. For this purpose, I have selected Kotlin language and TornadoFX framework. I have installed the TornadoFX plugin and created a new T tornadofx-gradle-project . The base setup made by Intellij was successful but I have encountered a problem. When I wanted to run the generated project it failed. The project cannot resolve the java fx. I have dug through the web and found nothing that would fix the problem. The error log that I receive after the failed build is: HAs anyone faces the same issue? How can I get rid of it? I have

Netbeans 9.0 with JavaFx 11 and JDK 11

混江龙づ霸主 提交于 2019-12-06 07:53:43
问题 I am trying to run JavaFX 11 on NetBeans 9 Since JDK 11 does not have JavaFX anymore I couldn't get NetBeans to run a JavaFX project, it says: "Failed to automatically set-up a JavaFX Platform." I then downloaded the javafx11 from this website https://gluonhq.com/products/javafx/, after following the tutorial I was able to compile and run a JavaFX class normally through terminal. The only way I could add JavaFX is by using Maven, but I can't run the application even that it was built

Using JavaFX with Intellij IDEA

坚强是说给别人听的谎言 提交于 2019-12-06 00:47:57
问题 I've followed a tutorial precisely and I can't seem to get it to work. The tutorial is under JavaFX and Intellij Non-modular from IDE sections: https://openjfx.io/openjfx-docs/#install-java Here is the error message I receive when trying to run the default Intellij Idea JavaFX project: "C:\Program Files\Java\jdk-11.0.1\bin\java.exe" --module-path %PATH_TO_FX% --add-modules=javafx.controls,javafx.fxml --add-modules javafx.base,javafx.graphics --add-reads javafx.base=ALL-UNNAMED --add-reads

JavaFX Integer Spinner (IntegerSpinnerValueFactory) does not wrap around the value to minimum

亡梦爱人 提交于 2019-12-05 13:37:25
I have created an Integer Spinner with values min (5), max (15) and initialValue (12) and wrapAround (true) . Once the spinner reaches the max (15) value during increment, instead of resetting the value to min (5) as it says in the documentation , it is being reset to value 10 (max (15) - min (5)) public final void setWrapAround​(boolean value) Sets the value of the property wrapAround. Property description: The wrapAround property is used to specify whether the value factory should be circular. For example, should an integer-based value model increment from the maximum value back to the

JavaFX 11 using Maven throws Exception: “WindowsNativeRunloopThread”

醉酒当歌 提交于 2019-12-05 13:36:09
I have been testing JavaFX 11 using Maven and cannot get it to work. I have Open JDK 11 installed and if adding jars to build path from downloadable .zip everything works just fine. However when I use the recommended POM file from the javafx 11 site I get the following error. Exception in thread "WindowsNativeRunloopThread" java.lang.NoSuchMethodError: <init> at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method) at javafx.graphics/com.sun.glass.ui.Screen.initScreens(Screen.java:412) at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application