-
Bug
-
Resolution: Fixed
-
P4
-
jfx25
-
master
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8364276 | jfx25.0.1 | Michael Strauß | P4 | Resolved | Fixed | master |
JDK-8364143 | jfx25 | Michael Strauß | P4 | Resolved | Fixed | master |
Reproducer:
Button button = new Button("Click");
button.setOnAction(e -> {
final Dialog<Object> dialog = new Dialog<>();
dialog.initOwner(primaryStage);
// dialog.initStyle(StageStyle.EXTENDED); // uncomment for bug
dialog.initModality(Modality.NONE);
dialog.setResizable(true); // This is important
dialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK);
dialog.setOnCloseRequest(dialogEvent -> {
System.out.println("Close the dialog pane. This is not called when EXTENDED is used.");
});
dialog.show();
});
StackPane root = new StackPane(button);
Scene scene = new Scene(root, 300, 200);
primaryStage.setScene(scene);
primaryStage.show();
Button button = new Button("Click");
button.setOnAction(e -> {
final Dialog<Object> dialog = new Dialog<>();
dialog.initOwner(primaryStage);
// dialog.initStyle(StageStyle.EXTENDED); // uncomment for bug
dialog.initModality(Modality.NONE);
dialog.setResizable(true); // This is important
dialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK);
dialog.setOnCloseRequest(dialogEvent -> {
System.out.println("Close the dialog pane. This is not called when EXTENDED is used.");
});
dialog.show();
});
StackPane root = new StackPane(button);
Scene scene = new Scene(root, 300, 200);
primaryStage.setScene(scene);
primaryStage.show();
- backported by
-
JDK-8364143 Close request handler is not called for an extended stage
-
- Resolved
-
-
JDK-8364276 Close request handler is not called for an extended stage
-
- Resolved
-
- relates to
-
JDK-8313424 JavaFX controls in the title bar (Preview)
-
- Resolved
-
- links to
-
Commit(jfx25) openjdk/jfx/5398b14c
-
Commit(master) openjdk/jfx/bc433da8
-
Review(jfx25) openjdk/jfx/1855
-
Review(master) openjdk/jfx/1831
(2 links to)