← JavaFX

OpenJFX 22 Release Notes

Planned versions

VersionPlanned release date
22.0.3January 21, 2025

All planned release dates are informative. Contact us for a personalised quote for our JavaFX Long Term Support (LTS) service.

Released versions

VersionRelease dateRelease notes
22.0.2July 16, 2024release notes
22.0.1April 16, 2024release notes
22March 19, 2024release notes

Release Notes for JavaFX 22.0.2

List of Fixed Bugs

Issue keySummarySubcomponent
JDK-8329705Add missing Application thread checks to platform specific a11y methodsaccessibility
JDK-8330462StringIndexOutOfBoundException when typing anything into TextFieldaccessibility
JDK-8322251[Linux] JavaFX is not displaying CJK on Ubuntu 23.10 and latergraphics
JDK-8324326Update ICU4C to 74.2web
JDK-8329011Update SQLite to 3.45.3web
JDK-8331748Update libxml2 to 2.12.6web
JDK-8332539Update libxml2 to 2.12.7web

List of Security fixes

| None |

Release Notes for JavaFX 22.0.1

List of Fixed Bugs

Issue keySummarySubcomponent
JDK-8325154resizeColumnToFitContent is slower than it needs to becontrols
JDK-8311492FontSmoothingType LCD produces wrong color when transparency is usedgraphics
JDK-8324233Update JPEG Image Decoding Software to 9fgraphics
JDK-8318614Update WebKit to 617.1web
JDK-8322703Intermittent crash in WebView in a JFXPanel from IME calls on macOSweb
JDK-8323879constructor Path(Path) which takes another Path object fail to draw on canvas htmlweb
JDK-8323880Caret rendered at wrong position in case of a click event on RTL textweb
JDK-8324337Cherry-pick WebKit 617.1 stabilization fixesweb
JDK-8325258Additional WebKit 617.1 fixes from WebKitGTK 2.42.5web
JDK-8326989Text selection issues on WebView after WebKit 617.1web
JDK-8327177macOS: wrong GlobalRef deleted in GlassMenuwindow-toolkit

List of Security fixes

Issue keySummarySubcomponent
JDK-8313040 (not public)Enhanced Font handlinggraphics
JDK-8313064 (not public)General enhancements of image handlinggraphics
JDK-8313072 (not public)Enhanced handling of Fontsgraphics
JDK-8322236 (not public)Build failure after JDK-8313064graphics
JDK-8313032 (not public)Enhanced handling of Glasswindow-toolkit
JDK-8320441 (not public)Additonal fix for JDK-8313032window-toolkit

Release Notes for JavaFX 22

Introduction

The following notes describe important changes and information about this release. In some cases, the descriptions provide links to additional detailed information about an issue or a change.

These release notes cover the standalone JavaFX 22 release. JavaFX 22 requires JDK 17 or later.

Important Changes

Animation May Be Started Asynchronously

The Animation methods play, start, stop, and pause may now be called on any thread. If these methods are called on a thread other than the JavaFX Application Thread, they will delegate to that thread to ensure proper thread safety. Since the execution is asynchronous in that case, the status might not be updated right away.

See JDK-8324658 for more information.

List of Enhancements

Issue keySummarySubcomponent
JDK-8309558Create implementation of NSAccessibilityCheckBox protocolaccessibility
JDK-8309629Create implementation of NSAccessibilityRadioButton protocolaccessibility
JDK-8324658Allow animation play/start/stop/pause methods to be called on any threadanimation
JDK-8318204Use new EventTarget methods in ListenerHelpercontrols
JDK-8301302Platform preferences APIgraphics
JDK-8314147Updated the PhongMaterial documentationgraphics
JDK-8320359ImageView: add styleable fitWidth, fitHeight, preserveRatio, smooth propertiesgraphics
JDK-8321573Improve Platform.Preferences documentationgraphics

List of Fixed Bugs

Issue keySummarySubcomponent
JDK-8284544[Win] Name-Property of Spinner cannot be changedaccessibility
JDK-8314597Deprecate for removal protected access methods in convertersbase
JDK-8317370JavaFX runtime version is wrong at runtimebase
JDK-8187314All Cells: must show backing data alwayscontrols
JDK-8205067Resizing window with TextField hides text valuecontrols
JDK-8248914Javafx TextField positions the cursor incorrectly after pressing DEL keycontrols
JDK-8282290TextField Cursor Position one offcontrols
JDK-8283675Line not removed from LineChart when series clearedcontrols
JDK-8285700[TreeTableView] graphic property of TreeItem is still visible after collapsing treecontrols
JDK-8303478DatePicker throws uncatchable exception on tab out from garbled textcontrols
JDK-8311185VirtualFlow jump when cellcount changescontrols
JDK-8311983ListView sometimes throws an IndexOutOfBoundsExceptioncontrols
JDK-8313628Column drag header, overlay and line are not correctly alignedcontrols
JDK-8313651Add ‘final’ keyword to public property methods in controlscontrols
JDK-8320444Column drag header is positioned wrong for nested columnscontrols
JDK-8321722Tab header flickering when dragging slowly other tabs and reordering uncompletedcontrols
JDK-8321970New table columns don’t appear when using fixed cell size unless refreshing tableViewcontrols
JDK-8323543NPE when table items are set to nullcontrols
JDK-8260342FXMLLoader fails to load a sub layout using fx:include with the resources attributefxml
JDK-8189282JavaFX: Invalid position of candidate pop-up of InputMethod in Hi-DPI on Windowsgraphics
JDK-8254126the position of Chinese Input Method candidates window is wronggraphics
JDK-8269921TextFlow: listeners on bounds can throw NPE while computing text boundsgraphics
JDK-8283401ArrayIndexOutOfBoundsException when disconnecting screen(s)graphics
JDK-8301893IME window position is off on secondary screengraphics
JDK-8306083Text.hitTest is incorrect when more than one Text node in TextFlowgraphics
JDK-8307536Exception from NativeLibLoader when running concurrent applications with empty cachegraphics
JDK-8310885Width/height of window is not set after calling sizeToScenegraphics
JDK-8311216DataURI can lose information in some charset environmentsgraphics
JDK-8313648JavaFX application continues to show a black screen after graphic card driver crashgraphics
JDK-8313856Replace VLA with malloc in pangographics
JDK-8314141Missing default for switch in CreateBitmapgraphics
JDK-8316419[macos] Setting X/Y makes Stage maximization not work before showgraphics
JDK-8316423[linux] Secondary Stage does not respect Scene’s dimensions when showngraphics
JDK-8316518javafx.print.Paper getWidth / getHeight rounds values, causing errors.graphics
JDK-8316781Legal, Monarch paper sizes are incorrect in javafx.print.Papergraphics
JDK-8319079Missing range checks in decoragraphics
JDK-8322795CSS performance regression up to 10xgraphics
JDK-8323077C type error (incompatible function pointer) in X11GLContext.cgraphics
JDK-8323078Incorrect length argument to g_utf8_strlen in pango.cgraphics
JDK-8324879Platform-specific preferences keys are incorrect for Windows toolkitgraphics
JDK-8325550Grammatical error in AnchorPane.setLeftAnchor (and other setters) javadocgraphics
JDK-8313900Possible NULL pointer access in NativeAudioSpectrum and NativeVideoBuffermedia
JDK-8317508Provide media support for libavcodec version 60media
JDK-8318386Update Glib to 2.78.1media
JDK-8318387Update GStreamer to 1.22.6media
JDK-8185831Pseudo selectors do not appear to work in Node.lookupAll()scenegraph
JDK-8199216Quadratic layout time with nested nodes and pseudo-class in style sheetscenegraph
JDK-8313956focusWithin on parents of a newly-added focused node is not updatedscenegraph
JDK-8318059Typo is javafx.scene.Node.usesMirroring commentscenegraph
JDK-8318624API docs specify incorrect default value for nodeOrientation propertyscenegraph
JDK-8222209JavaFX is rendered blurry on systems with monitors in different configurationswing
JDK-8262518SwingNode.setContent does not close previous content, resulting in memory leakswing
JDK-8274932Render scales in EmbeddedWindow are not properly updatedswing
JDK-8317836FX nodes embedded in JFXPanel need to track component orientationswing
JDK-8310681Update WebKit to 616.1web
JDK-8311097Synchron XMLHttpRequest not receiving dataweb
JDK-8313177Web Workers timeout with Webkit 616.1web
JDK-8313181Enabling media controls on webkit 616.1 does not load button images on video Elementweb
JDK-8313711Cherry-pick WebKit 616.1 stabilization fixesweb
JDK-8314212Crash when loading cnn.com in WebViewweb
JDK-8318388Update libxslt to 1.1.39web
JDK-8320267WebView crashes on macOS 11 with WebKit 616.1web
JDK-8087368java runtime environment error when trying to execute showAndWait() functionwindow-toolkit
JDK-8087700[KeyCombination, Mac] KeyCharacterCombinations behave erraticallywindow-toolkit
JDK-8221261Deadlock on macOS in JFXPanel app when handling IME callswindow-toolkit
JDK-8251240Menus inaccessible on Linux with i3 wmwindow-toolkit
JDK-8255835[macOS] Undecorated stage cannot be maximizedwindow-toolkit
JDK-8274967KeyCharacterCombinations for punctuation and symbols fail on non-US keyboardswindow-toolkit
JDK-8284445macOS 12 prints a warning when a function key shortcut is assigned to a menuwindow-toolkit
JDK-8301219JavaFX crash when closing with the escape keywindow-toolkit
JDK-8305675[macos] Stage set to iconified before being shown is displayed on screenwindow-toolkit
JDK-8314149Clipboard does inexact string comparison on mime typewindow-toolkit
JDK-8315074Possible null pointer access in native glasswindow-toolkit
JDK-8315657Application window not activated in macOS 14 Sonomawindow-toolkit
JDK-8315958Missing range checks in GlassPasteboardwindow-toolkit
JDK-8318841macOS: Memory leak with MenuItem when Menu.useSystemMenuBar(true) is usedwindow-toolkit
JDK-8319066Application window not always activated in macOS 14 Sonomawindow-toolkit
JDK-8319341[Linux] Remove operation to show or hide children because it is unnecessarywindow-toolkit
JDK-8319669[macos14] Running any JavaFX app prints Secure coding warningwindow-toolkit
JDK-8322215[win] OS events that close the stage can cause Glass to reference freed memorywindow-toolkit

List of Security fixes

Issue keySummarySubcomponent
JDK-8313048 (not public)Better Glyph handlinggraphics
JDK-8313105 (not public)Improved media framingmedia
JDK-8313056 (not public)General enhancements of Glasswindow-toolkit