JEP: JavaFX controls in the title bar
Thiago Milczarek Sayão
thiago.sayao at gmail.com
Thu Oct 24 22:13:20 UTC 2024
Em qui., 24 de out. de 2024 18:32, Michael Strauß <michaelstrau2 at gmail.com>
escreveu:
> > Sounds like a good idea, maybe stage.setHeaderBar(), which can be the
> HeaderBar provided or a custom Control (any control, or that extends
> HeaderBar, because the reserved space on Mac).
> >
> > This also limits the control usage on the top.
>
> What would be the advantage of this, compared to the proposal?
> How does this interact with the scene graph?
> How would I create a control that extends from the client area all the
> way into the header area?
>
I thought as a way to avoid having multiple HeaderBar, to restrict it being
on top and to avoid conflicting with TRANSPARENT stage style, specially on
Linux because of the rounded corners (and maybe other combinations of
transparent + HeaderBar)
But you have a good point about the interaction with the Scene graph.
It must be part of the Scene, of course, but it's also a Window
characteristic. Would be nice to find a way to express it in one way that
fits both.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20241024/f81a56f6/attachment.htm>
More information about the openjfx-dev
mailing list