Integrated: 8362095: HeaderButtonMetrics should not be used across toolkit boundary

Michael Strauß mstrauss at openjdk.org
Mon Jul 14 16:44:52 UTC 2025


On Sun, 13 Jul 2025 21:34:42 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> The record `com.sun.glass.ui.HeaderButtonMetrics` is used by Glass, but also in the FX layer (in `Stage` and `HeaderBar`). This is architectually unsound, as the FX layer should not directly reference the Glass implementation.
> 
> The solution here is to introduce another record that is used in the FX layer, and translate between the Glass/FX types in quantum toolkit.

This pull request has now been integrated.

Changeset: 1a2a50b5
Author:    Michael Strauß <mstrauss at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/1a2a50b593a1abcb767a3c6b0287996bdfb26973
Stats:     64 lines in 7 files changed: 56 ins; 7 del; 1 mod

8362095: HeaderButtonMetrics should not be used across toolkit boundary

Reviewed-by: jhendrikx, kcr

-------------

PR: https://git.openjdk.org/jfx/pull/1846


More information about the openjfx-dev mailing list