RFR: 8313424: JavaFX controls in the title bar [v71]

Markus Mack mmack at openjdk.org
Fri May 2 18:28:10 UTC 2025


On Fri, 2 May 2025 11:46:12 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

> > Would it be feasible to ensure the minium window width is large enough by default, and allowing to turn this off when manual clipping is implemented instead?
> 
> It's probably a bit hard with the API around `Stage.minWidth` and `Stage.minHeight`. Deriving a minimum size from the window content is probably easy (just measure the minimum size of the root node), but currently the stage doesn't reach into the scene graph to set its minimum size. The problem is also not exclusive to `HeaderBar`, as the window can currently be resized below the minimum size of the rest of the scene graph, too. Maybe we could have an option for `Stage` to always be large enough to accomodate the minimum scene graph size.

Ok, that would need to be done elsewhere then.
I'd be fine with either adding documentation that this window size issue needs to be handled somehow by the app, or going with the automatic content clipping with the `HeaderBar.clipSystemInset` flag as proposed, which can be turned off when the more complex cases arise.

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

PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2847836730


More information about the openjfx-dev mailing list