RFR: 8313424: JavaFX controls in the title bar (Preview) [v83]
Michael Strauß
mstrauss at openjdk.org
Tue Jun 10 17:20:50 UTC 2025
On Tue, 10 Jun 2025 16:51:35 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> Looks good.
>
> Spent some time trying to set the new -FX-INTERNAL- CSS properties via scene stylesheet, failed as expected (win11). BTW, did not see any CSS errors in stderr.
This "works" for me:
scene.getStylesheets().add("data:base64," + Base64.getUrlEncoder().encodeToString("""
.-FX-INTERNAL-header-button-container {
-fx-background-color: #ff000055;
}""".getBytes(StandardCharsets.UTF_8)));
It's still not API, and still not a proper use of this feature.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2960045694
More information about the openjfx-dev
mailing list