Skip to content

Commit

Permalink
Error alert now resizable.
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaldispuehl committed Mar 15, 2017
1 parent d9b854f commit 679e9fd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 679e9fd

Please sign in to comment.