<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Hi,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">This doesn't quite make sense to me, the Left and Right have a resize cursor, and neither of those are set as draggable. I guess it's because of their height/placement. E.g., see left versus right (Label versus HBox) in slightly tweaked code.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">E.g.:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><img src="cid:ii_mjvzt8pa1" alt="curs.gif" width="562" height="78"><br><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">So this brings me to another problem. We don't want some nodes to be draggable, such as the MenuBar. Because if it is, we end up with this:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><img src="cid:ii_mjw01z642" alt="menu.gif" width="562" height="109"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">And if you make it <i style="">non-draggable</i>, you lose the resize cursor (in IntelliJ, you get both non-drag behaviour, and resize cursor above the menu). It seems very confusing and non-intuitive; this relationship between dragging options and seeing a resize cursor and how they're incompatible re: the menu example.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">public class MenuCursorIssue extends Application {<br>    public static void main(String[] args) { launch(args); }<br><br>    @Override<br>    public void start(Stage primaryStage) {<br><br>        MenuBar menuBar = new MenuBar();<br>        final Menu file = new Menu("File");<br>        file.getItems().addAll(new Menu("New"), new Menu("Open"));<br><br>        menuBar.getMenus().addAll(file, new Menu("Edit"));<br><br>        Region region = new Region();<br>        HBox.setHgrow(region, Priority.ALWAYS);<br>        // HeaderBar.setDragType(menuBar, HeaderDragType.DRAGGABLE_SUBTREE);<br><br>        HeaderBar.setDragType(region, HeaderDragType.DRAGGABLE_SUBTREE);<br>        HBox menuHbox = new HBox(menuBar, region);<br><br>        final HeaderBar headerBar = new HeaderBar();<br>        headerBar.setCenter(menuHbox);<br><br>        primaryStage.initStyle(StageStyle.EXTENDED);<br>        primaryStage.setScene(new Scene(new BorderPane(new Label("center"), headerBar, null, null, null), 600, 400));<br>        primaryStage.show();<br>    }<br>}</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Kind Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Cormac</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 1 Jan 2026 at 21:41, Michael Strauß <<a href="mailto:michaelstrau2@gmail.com">michaelstrau2@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Cormac,<div><br></div><div>that's not a bug: On Windows, the top resize border is inside of the window, while the other three resize borders are outside of the window. You only get a resize cursor if the area below the cursor is draggable, which your green HBox is not. If you make it draggable, then you'll also get a resize cursor. This is by design, as the resize border shouldn't overlap client elements (in our case, elements that are not draggable).</div><div><br></div><div>The fact that you get a resize cursor for the top edge of the red label looks like it may have something to do with the fact that it's a label, but in reality the label is just placed close enough to the top edge of the window so that the resize border extends a tiny bit over the label (which is draggable).</div></div>
</blockquote></div></div>