...
- The Java Deployment stack was removed in JDK 11. There is no ability to run a JavaFX application as an Applet or a WebStart application.
- The JavaFX builder classes, which were previously deprecated in JDK 8 with the stated intention to remove them, have been removed from JDK 9. JavaFX applications that use the builder classes should instead construct the needed scene graph objects directly and set the desired properties with the equivalent method calls. (Refer - JDK-8092861)
- Support for VP6 video encoding format and FXM/FLV container has been removed in JavaFX Media. Users are encouraged to use H.264/AVC1 in the MP4 container or HTTP Live Streaming instead. (Refer - JDK-8187637)
- FX Media support for libavcodec 53 and 55 was removed. These libraries are not present on supported Linux platforms by default, and are no longer needed. (Refer JDK-8194062)
- JavaFX Requires GTK 3 on Linux (GTK 2 support was removed) (Refer - JDK-8299595)
- The `HostServices::getWebContext` method has been removed. There is no replacement for this functionality. This method was only used when running a JavaFX Applet, which is no longer available" (Refer - JDK-8187149)
The security manager, which was used by some client applications, is no longer available. See https://openjdk.org/jeps/486 for details.
Important new APIs -
javafx.scene.control.skin | New package containing several Skin classes | |
New package containing several CSS related classes | ||
javafx.application | Platform.enterNestedEventLoop(Object) Platform.exitNestedEventLoop(Object, Object) | |
javafx.stage | Window.getWindows() | |
javafx.fxml | javafx.fxml | |
javafx.graphics | javafx.scene.text | Font.loadFonts(InputStream, double) Font.loadFonts(String, double) |
Building a JavaFX application with JavaFX 24
- Starting with Java SE 11, JavaFX is not included in the Oracle JDK. JavaFX has been open sourced and redesigned to be available as a stand-alone library rather than being included with the JDK.
- The JavaFX runtime is delivered as an SDK and as a set of jmods for each platform.
- You can use the SDK to compile and run JavaFX applications.
- You can use the jmods with jlink to create a JDK that includes the JavaFX modules, and optionally, your modular application.
Overview
Content Tools
ThemeBuilder