From 679e9fd7a1751d5c4c25b89ab8c06308f7b42070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nico=20Waldisp=C3=BChl?= Date: Wed, 15 Mar 2017 15:46:54 +0100 Subject: [PATCH] Error alert now resizable. --- .../ch/retorte/estimator/mainscreen/MainScreenController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/estimator.ui/src/main/java/ch/retorte/estimator/mainscreen/MainScreenController.java b/estimator.ui/src/main/java/ch/retorte/estimator/mainscreen/MainScreenController.java index 607996c..133848b 100644 --- a/estimator.ui/src/main/java/ch/retorte/estimator/mainscreen/MainScreenController.java +++ b/estimator.ui/src/main/java/ch/retorte/estimator/mainscreen/MainScreenController.java @@ -179,10 +179,12 @@ private void triggerChangeListener() { public void showError(String message, Exception e) { e.printStackTrace(); + Alert alert = new Alert(Alert.AlertType.ERROR); alert.setTitle("Error"); alert.setHeaderText(message); alert.setContentText(e.getLocalizedMessage()); + alert.setResizable(true); alert.showAndWait(); } }