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.