Hello,

I'm using StageStyle.EXTENDED together with the new HeaderBar. Could anyone say if there is a way to disable window maximizing when the user double-clicks on the header area? I need it for a custom dialog window — it should be resizable, but without maximize support (there is no maximize button, and the window should not be maximized on double-click).

I tried the following:

headerBar.addEventFilter(MouseEvent.MOUSE_CLICKED, e -> {
    if (e.getClickCount() == 2) {
        e.consume();
    }
});

But it didn't work because the filter is never called.


Best regards, Pavel

Reply via email to