(AlertType type, String title, String headerText, String text)
| 546 | } |
| 547 | |
| 548 | public void showAlert(AlertType type, String title, String headerText, String text) { |
| 549 | Alert alert = new Alert(type, text); |
| 550 | |
| 551 | alert.setTitle(title); |
| 552 | alert.setHeaderText(headerText); |
| 553 | |
| 554 | Platform.runLater(() -> alert.getDialogPane().getScene().getWindow().sizeToScene()); // work around linux display bug (JDK-8193502) |
| 555 | |
| 556 | alert.showAndWait(); |
| 557 | } |
| 558 | |
| 559 | public boolean requestConfirmation(String title, String headerText, String text) { |
| 560 | Alert alert = new Alert(AlertType.CONFIRMATION, text); |
no test coverage detected