RFR: 8313424: JavaFX controls in the title bar (Preview) [v86]
Cormac Redmond
duke at openjdk.org
Fri Jun 13 00:08:47 UTC 2025
On Thu, 12 Jun 2025 21:53:33 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> Implementation of [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09).
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>
> add the same fix in childVisibilityChanged
Have DialogPanes and Alerts been considered for use with HeaderBar & StageStyle.EXTENDED?
I.e., re: Alerts, cater for **hiding** minimise / maximise icons by default, but still showing the close (X) icon.
Seems to me that StageStyle.EXTENDED implies all three icons must be shown, and if any other configuration is required, it involes hiding everything (by setting height to 0) and creating your own button(s). Which, if all you want is the close button, there's no simple way to create _that_. Or is there?
Shouldn't this be made much simpler for the dev? Even if they need to manage their own buttons for these standard utility-style popups (which isn't a great experience given it's currently handled for us by default), can't we provide a way to instantiate the window icons as nodes?
Maybe I am missing something.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2968499508
More information about the openjfx-dev
mailing list