<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Iosevka Fixed SS16";
        panose-1:2 0 5 9 3 0 0 0 0 4;}
@font-face
        {font-family:"Times New Roman \(Body CS\)";
        panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Iosevka Fixed SS16";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Dear Michael:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Thank you for adding clarifications to the JEP!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">More questions:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">- Right-click system menu: is there any way to provide this functionality somehow?  May be as a method in the HeaderBar?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">- iOS/Android: while the existing PR does not provide support for iOS/Android, does Gluon have any feedback or plans to implement it?  I would imagine the mobile users would
 not care, but the tablet users might.  Johan Vos, what do you think?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Could you please add these two columns to the table, even if they contain N/A.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">- left/rightSystemInsets: thank you, you probably want to clarify that in these properties' javadoc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">- HeaderBar height: my question was what should the application developers do in order to make the height of the bar to be the same as the native one?  Maybe there should be
 a constant similar to Region.USE_COMPUTED_SIZE to accomplish that?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">I am sure there will be more questions once we play with the initial implementation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">Thank you,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16"">-andy<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Iosevka Fixed SS16""><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">openjfx-dev <openjfx-dev-retn@openjdk.org> on behalf of Michael Strauß <michaelstrau2@gmail.com><br>
<b>Date: </b>Thursday, October 24, 2024 at 16:29<br>
<b>To: </b><br>
<b>Cc: </b>openjfx-dev <openjfx-dev@openjdk.org><br>
<b>Subject: </b>Re: JEP: JavaFX controls in the title bar<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">> In the table, you mention "custom implementation" for resize borders.  What does it mean (who is providing the implementation?)<br>
<br>
glass-gtk is providing the implementation; added to the JEP<br>
<br>
<br>
<br>
> Also in the table, please add "right click to invoke the system menu" (this might be a windows-only feature), and the "window shadow" row.<br>
<br>
Done.<br>
<br>
<br>
<br>
> I see the native code in your PR refer to iOS, but not Android.  Can you add the two columns to the table (even if they are N/A right now)?<br>
<br>
I've clarified in the sentence before the table that the feature is<br>
only supported on Windows, macOS, and Linux.<br>
<br>
<br>
<br>
> In the "Superimposed window buttons" section, you mention that the window buttons automatically adapt to the Scene background, yet on Windows (10, I think) the color of buttons is a user-selectable item, as far as  I remember.  Can you elaborate, maybe with
 examples (in the JEP)?<br>
<br>
I don't think that you can change the colors of windows buttons on<br>
Windows 10 or Windows 11.<br>
<br>
<br>
<br>
> "the system-reserved areas will be empty" meaning non-null (0,0), right?<br>
<br>
Correct, added to the JEP.<br>
<br>
<br>
<br>
> "With the absence of a system-provided header bar, the click-to-drag and double-click to maximize behaviors are lost."  I read it as the application code must re-implement this functionality, yet afterward you say the HeaderBar provides it.  May be it should
 read "... behaviors would be lost" or something to that effect.  The main thing I want to know from reading the JEP is what parts the application developers should implement and what is provided by the new feature.<br>
<br>
Clarified in the JEP.<br>
<br>
<br>
<br>
> "leftSystemInset and rightSystemInset" properties.  How does this work on RTL platforms?  Do these properties retain their left/right semantics, or should they be renamed leading/trailing?<br>
<br>
leftSystemInset and rightSystemInset refer to the physical left or<br>
right side, as we have two independent questions:<br>
1. Are the window buttons on the physical left or right side of the<br>
window? (that's what this API answers)<br>
2. Is the JavaFX application running in RTL mode?<br>
<br>
<br>
<br>
> For HeaderBar: what are the steps to ensure that the height of the bar is exactly the same as the native?  Same question, but with two initial conditions: the children that can be enlarged or shrink, and the children that might have a minimum size, like TextArea
 for instance.<br>
<br>
The HeaderBar need not be the same height as the native title bar. In<br>
fact, it can be any height. The latest Windows UI design guidelines<br>
even recomment that applications choose an appropriate height:<br>
<a href="https://learn.microsoft.com/en-us/windows/apps/design/basics/titlebar-design">https://learn.microsoft.com/en-us/windows/apps/design/basics/titlebar-design</a><br>
<br>
HeaderBar will respect the minimum, maximum, and preferred sizes of<br>
its children. If you place a child with a certain min height into the<br>
HeaderBar, it will be at least as high as the child. The same goes for<br>
width.<br>
<br>
<br>
<br>
> What happens if the header bar width is less than the minimum size of its children?  Should the trailing children slide out of the view, or should the children be squished beyond their minimum size?  Could this be an option?  Could this be controlled in the
 same manner as the GridPane, for example?  Is the header bar always clipped?<br>
<br>
The HeaderBar width will not be less than the minimum width of its<br>
children. If you resize the window below the minimum width of the<br>
HeaderBar, the children will simply be clipped at the window border.<br>
Note that applications can place a layout container into the HeaderBar<br>
that supports other layout features (for example, overflow menus like<br>
ToolBar).<br>
<br>
<br>
<br>
> Minor question: should there be an explicit safeguard against creating two HeaderBars, or placing them in the unusual place?  An exception perhaps?<br>
<br>
That would probably only apply to two HeaderBars that are active in<br>
the scene graph. But on the other hand, maybe an application wants to<br>
configure two different header bars, place both of them in the scene<br>
graph, and then only show one of those (maybe toggling the visibility<br>
of both).<br>
I certainly wouldn't create such an application, but who knows what<br>
people will do...<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>