JavaFX version 25 has been released. We’ve tailored down some of the most exciting parts of the release in this document.
JavaFX 25 is compiled with --release 23
and thus requires JDK 23 or later in order to run.
If you attempt to run with an older JDK, the Java launcher will exit with an error message indicating that the javafx.base
module cannot be read.
See JDK-8359387 for more information.
On Linux platforms, JavaFX requires GTK3 version 3.20 or later. An exception will be thrown when initializing the JavaFX runtime if the GTK 3 library cannot be loaded or is older than 3.20.
See JDK-8359396 for more information.
--sun-misc-unsafe-memory-access=allow
It is no longer necessary to pass --sun-misc-unsafe-memory-access=allow
to java
on the command line when running JavaFX applications.
The bug that formerly caused this option to be needed has been fixed.
See JDK-8334137 for more information.
TransitionEvent
Constructor Has Been RemovedThe TransitionEvent(EventType, StyleableProperty, Duration)
constructor was deprecated for removal in JavaFX 24 and has now been removed.
Application developers should use TransitionEvent(EventType, StyleableProperty, String, Duration)
instead.
See JDK-8353617 for more information.
Exciting features:
New APIs:
New Features:
The community came together to fix 74 bugs in the last 6 months. Following are major bug-fixes that went into JavaFX 25:
Finally, these are some dependency upgrades in JavaFX 25:
A more comprehensive list of all the changes in JavaFX 25 can be found on Github.
Kudos go to the fine people at Gluon who took care of the bulk of the work on JavaFX 25. Do check their JavaFX Long Term Support services.