RFR: 8313424: JavaFX controls in the title bar [v19]
Michael Strauß
mstrauss at openjdk.org
Thu Nov 7 03:34:41 UTC 2024
On Tue, 5 Nov 2024 16:25:08 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> What do you mean with growing and shrinking?
>>
>> An application can add a single `GridPane` to `HeaderBar.center`, and set its prefWidth to `POSITIVE_INFINITY`. This will extend the `GridPane` across the entire width of the header bar (excluding the window button area).
>
> maybe what's needed is to borrow some text from the `BorderPane`, along the lines of
>
>> "The top and bottom children will be resized to their preferred heights and extend the width of the border pane. The left and right children will be resized to their preferred widths and extend the length between the top and bottom nodes. And the center node will be resized to fill the available space in the middle. Any of the positions may be null. "
>
> the important parts are
> - how children are resized
> - any can be null
>
> (the layout in the HB is like the one in the `BorderPane`, right?)
Yes, `HeaderBar` is quite like `BorderPane`. I've added the information about nulls to the documentation, does that help?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1605#discussion_r1832002965
More information about the openjfx-dev
mailing list