We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8028ece + 23e0b1e commit 5c34662Copy full SHA for 5c34662
1 file changed
modules/ui/org.eclipse.fx.ui.dialogs/src/main/java/org/eclipse/fx/ui/dialogs/Dialog.java
@@ -260,6 +260,7 @@ protected Stage create() {
260
stage.setTitle(this.title);
261
stage.initOwner(this.parent);
262
stage.initModality(getModality());
263
+ stage.setOnCloseRequest( evt -> this.setReturnCode( CANCEL_BUTTON ) );
264
Parent content = createContents();
265
266
Pane rootContainer = getCustomWindowPane();
0 commit comments