RFR: 8313424: JavaFX controls in the title bar [v19]
Michael Strauß
mstrauss at openjdk.org
Tue Nov 5 06:21:36 UTC 2024
On Tue, 5 Nov 2024 00:13:20 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Michael Strauß has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 23 commits:
>>
>> - Merge branch 'master' into feature/extended-window
>> - Merge branch 'master' into feature/extended-window
>> - macOS: dynamically adapt toolbar style to headerbar height
>> - fix header bar height flicker
>> - NPE
>> - fix peer access outside of synchronizer
>> - improve title text documentation
>> - macOS: hide window title
>> - better documentation
>> - set minHeight to native height of title bar
>> - ... and 13 more: https://git.openjdk.org/jfx/compare/58cd76a8...9b63892d
>
> modules/javafx.graphics/src/main/java/javafx/scene/layout/HeaderBar.java line 53:
>
>> 51: * account for the default window buttons (minimize, maximize, close). If a child is configured to be
>> 52: * centered in the {@code center} area, it is laid out with respect to the stage, and not with respect
>> 53: * to the {@code center} area. This ensures that the child will appear centered in the stage regardless
>
> should there be more fine tuned control for growing/shrinking?
>
> can the application just add a single container like GridPane that handles the resizing?
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).
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1605#discussion_r1828786562
More information about the openjfx-dev
mailing list