RFR: 8313424: JavaFX controls in the title bar [v3]
Michael Strauß
mstrauss at openjdk.org
Mon Oct 21 23:12:38 UTC 2024
On Mon, 21 Oct 2024 22:45:28 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> To clarify about height: do all the platforms support arbitrary height? What if size set by the app/CSS exceeds the height supported by the platform?
Yes, all platforms support header bars of arbitrary height. You can make the header bar the size of the entire window, in which case _everything_ is draggable.
> About platform preferences: will it support **all** the attributes of the window decorations provided by the platform?
If by "attributes" you mean the default behavior of platform decorations, then the anwer is _mostly_. These are the behaviors that are available on every platform:
1. A resize border.
2. Minimize, maximize, and close buttons (this includes all states these buttons can be in: available/deactivated/disabled).
3. Click-and-drag on the header bar.
4. Double-click to maximize on the header bar.
On Windows, native window decorations also have the "system menu", which is this thing that appears when you click on the program icon:

`EXTENDED` windows have no system menu, because they have no program icon.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2427899709
More information about the openjfx-dev
mailing list