JavaFX 25, an update of the rich client application platform for Java, has arrived with new capabilities including a preview of JavaFX controls in the title bar, the ability to style RichTextArea
highlights using CSS, the addition of media queries to JavaFX CSS, and the addition of new geometry-based methods to the Text
and TextFlow
APIs.
Notice of the JavaFX 25 release was cited on Oracle’s Inside Java website on September 23, although Gluon was credited with doing most of the work on the project. The release is downloadable from jdk.java.net.
For JavaFX controls in the title bar, which is being previewed in JavaFX 25, a Stage
style is defined in which the client area is extended into the header bar area. This removes the separation between the two regions and allows applications to place scene graph nodes in the header bar area of the Stage
. This new feature provides the default header buttons (iconify, maximize, close), but no system-provided draggable header bar. Applications provide their own header bar by placing a HeaderBar
control in the scene graph, positioned at the top of the window.