Skip to content

Commit

Permalink
Set title, improve message text
Browse files Browse the repository at this point in the history
  • Loading branch information
SamCarlberg committed Nov 21, 2017
1 parent db3f3ef commit 93a559f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public void start(Stage primaryStage) throws IOException {
primaryStage.setHeight(Screen.getPrimary().getVisualBounds().getHeight());
primaryStage.setOnCloseRequest(closeEvent -> {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.setTitle("Save layout");
alert.getDialogPane().getScene().getStylesheets().setAll(mainPane.getStylesheets());
alert.getButtonTypes().setAll(ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);
alert.getDialogPane().setHeaderText("Save the current layout?");
alert.getDialogPane().setHeaderText("Save the current layout before closing?");
alert.showAndWait().ifPresent(bt -> {
if (bt == ButtonType.YES) {
try {
Expand Down

0 comments on commit 93a559f

Please sign in to comment.