Questions tagged [javafx-11]

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms. Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms.

Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

JavaFX has been moved to OpenJDK under the OpenJFX project, and a mirror of the OpenJFX repository has been created on GitHub. OpenJFX is free software, licensed under the GPL with the class path exception, just as OpenJDK. Anybody is welcome to contribute to this project.

JavaFX 11 GA was released on September 18th, 2018, a week before the release of Java 11. A new OpenJFX community site was launched at the same time at http://openjfx.io/.

Getting Started

Using an early access of Java 11, JavaFX 11 can be added to the project via:

  • Downloading JavaFX 11 for the specific machine, and including the jars and native libraries in the project.

  • Retrieving JavaFX 11, that can be either downloaded from openjfx.io or by accessing any of the javafx modules from maven central from Maven Central, and including them as dependency to Maven or Gradle projects.

For a Maven project:

<dependencies>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>11</version>
        <classifier>$platform</classifier>
    </dependency>
</dependencies>

And for Gradle:

dependencies {
    compile "org.openjfx:javafx-controls:11:${platform}"
}

See this guide for running a Hello World sample.

For JavaDoc see this link.

339 questions
0
votes
1 answer

LoadException when trying to load new window fxml

I have javafx menu, I want to switch to another window. When I was using Java-8 everything worked, but now I switched to javafx-11 and java-11 and I cannot switch. Switching code AnchorPane pane =…
Filip Bartoš
  • 301
  • 3
  • 16
0
votes
1 answer

JavaFX runtime components are missing, and are required to run this application in IntelliJ

I'm using Java 11 and JavaFx-11 to create an FX application with IntelliJ IDEA...i have brought in all the external libraries i need. When i run the application, i get the following error, "Error: JavaFX runtime components are missing, and are…
M.Gumede
  • 137
  • 1
  • 2
  • 7
0
votes
0 answers

How to recompile JavaFX 11/12

I'm trying to recompile JavaFX 11 (or 12) from source in an eclipse project, but I encounter some problems. Here is how I proceed: 1. I download the JavaFX SDK for Windows here 2. I create an eclipse project for each JavaFX module (javafx.base,…
aRaMinet
  • 103
  • 1
  • 8
0
votes
1 answer

javafx 11 does not find the main class from which it was called from

I am trying to launch the application from an eclipse product definition. I have synchronized the product with its defining plug in, and in "contents" I hit "all required plugins". The stack trace tells it all. Of course the package is…
Árpád Magosányi
  • 1,394
  • 2
  • 19
  • 35
0
votes
1 answer

maven cannot find javafx 11 when compiling an eclipse application

I have an eclipse application using javafx 11. For lack of better solution, I have javafx installed in /opt/javafx-sdk-11.0.2, the product definition contains --module-path /opt/javafx-sdk-11.0.2/lib/ --add-modules=javafx.controls as vm arguments,…
Árpád Magosányi
  • 1,394
  • 2
  • 19
  • 35
0
votes
1 answer

JavaFX control spinner dont works

Hi I'd like add to control "Spinner" integers between 1 to 24. I write my function and i added to fxml file but display exception (JavaFX 11). Normally while I build window display spinner with default value "7" i can also change int from 1 to 24…
David W
  • 51
  • 2
  • 8
0
votes
0 answers

Why is the other views(table view) doesnt appear in the Customers fxml's border pane when loading inside the main window?

I'm a very beginner with JavaFX. I'm trying to design some UIs using scene builder. I want to change the scene into customers ui when user click on the customers button on the home ui. I finally could manage to make it appear. But now it happens…
Ruvindra Yohan
  • 67
  • 1
  • 10
0
votes
1 answer

Assistance to Java Module: Module 'name' reads package 'javafx.beans'

Currently, I am trying to link a maven project with Java 9's module system however I keep getting the same error in every module.. (using Java 11) Module 'common' reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base' I have been…
treeden
  • 675
  • 1
  • 6
  • 17
0
votes
0 answers

JavaFX 11 ComboBox.getSelectionModel().clearSelection() ends in an IndexOutOfBoundsException

I have a problem with JavaFX 11 ComboBoxes. I have one entry that resets the combobox. But the following Code always ends in an IndexOutOfBoundException. if (combobox_class.getValue() != null && combobox_class.getValue().equals("Bitte wählen…
Marvin
  • 80
  • 1
  • 8
0
votes
1 answer

Creating Fat Jars: What is the mods folder?

I'm just on: https://openjfx.io/openjfx-docs/#modular trying to create a jar I can run on other systems (that do not have the javafx libraries as would happen with a non-developer layman user) and they've told me to use this: dir /s /b src\*.java…
chrips
  • 4,996
  • 5
  • 24
  • 48
0
votes
1 answer

Javafx 11 Spring Boot and Maven: No auto configuration classes found in META-INF/spring.factories

when I start my application from NetBeans it works fine. But when I execute my applycation from jar I receive this error: Failed to load spring application context: java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: No…
0
votes
0 answers

Could not find or load main class - similar question solutions have not worked

I know this question has been asked a lot but I could not find an answer that solved my problem. When I try and run my Java program in Eclipse I get : Error: Could not find or load main class tutorial2.Exterminator Caused by:…
Julien Powell
  • 186
  • 1
  • 14
0
votes
0 answers

How to use 3rd party library in Java11 module if --describe-module doesn't work?

I'm trying to use jlfgr java -jar thejarfile --describe-module gives Unable to derive module descriptor for: jlfgr-1_0.jar jlfgr.1.0: Invalid module name: '1' is not a Java identifier My current Java 11 with JFX11 module-info is like: module FXTodo…
chrips
  • 4,996
  • 5
  • 24
  • 48
0
votes
0 answers

Problem with fake multiple vertical touch events at once - OpenJDK 11.0.2

Several times a day I observe multiple touch events at once, whereas I touch only with one finger to one place. These touches are always vertical = almost the same X coordination, but the large area in Y coordination. I’m using resolution…
Xdg
  • 1,735
  • 2
  • 27
  • 42
0
votes
0 answers

Creating jar artifact with JFX11 results in un-self-executing jar

I understand that people need Java installed on their system to run the jar. But if it's a JavaFX 11 (from gluonhq) project, I create the artifact and I can't double click it like I used to be able to with Java 1.8 (since JavaFX was included). This…
chrips
  • 4,996
  • 5
  • 24
  • 48