JDK-8325900 : Emit a warning on macOS if AWT has set the NSAppearance
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: jfx22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-02-14
  • Updated: 2024-04-04
  • Resolved: 2024-03-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx23 b12Fixed
Related Reports
Relates :  
Relates :  
Description
Platform preferences detection doesn't pick up effective macOS system preferences if AWT owns the NSApplication and has set its NSAppearance to a fixed value.

The workaround is to set the system property "apple.awt.application.appearance=system".

If this property is not set, a warning should be emitted if a JavaFX application uses the platform preferences API.
Comments
Changeset: eca32354 Author: Michael Strauß <mstrauss@openjdk.org> Date: 2024-03-29 19:16:26 +0000 URL: https://git.openjdk.org/jfx/commit/eca323547ec0e84b40bebb213350b6cea5385904
29-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1367 Date: 2024-02-14 21:09:39 +0000
14-02-2024