RFR: 8313424: JavaFX controls in the title bar [v56]
Andy Goryachev
angorya at openjdk.org
Tue Mar 18 21:46:27 UTC 2025
On Mon, 17 Mar 2025 18:54:27 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> Implementation of [`EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09) and `EXTENDED_UTILITY` stage style.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>
> enable preview features in tests
Preview feature works as designed - there is an exception when trying to access the feature:
Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: StageStyle.EXTENDED_UTILITY is a preview feature of JavaFX 25-internal.
Preview features may be removed in a future release, or upgraded to permanent features of JavaFX.
Programs can only use preview features when the following system property is set: -Djavafx.enablePreview=true
at javafx.base/com.sun.javafx.PreviewFeature.checkEnabled(PreviewFeature.java:80)
at javafx.graphics/javafx.stage.Stage.initStyle(Stage.java:471)
Once -Djavafx.enablePreview=true` is set, the feature runs:
Note: This program uses the following preview feature of JavaFX 25-internal: StageStyle.EXTENDED
Preview features may be removed in a future release, or upgraded to permanent features of JavaFX.
This warning can be disabled with the following system property: -Djavafx.suppressPreviewWarning=true
Note: This program uses the following preview feature of JavaFX 25-internal: HeaderBar
Preview features may be removed in a future release, or upgraded to permanent features of JavaFX.
This warning can be disabled with the following system property: -Djavafx.suppressPreviewWarning=true
and adding -Djavafx.suppressPreviewWarning=true` disables the warnings.
Nice.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2734810757
More information about the openjfx-dev
mailing list