You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
Alert alert = new Alert(Alert.AlertType.ERROR);
|
|
alert.setTitle("File not found");
|
|
alert.setContentText("File could not be located");
|
|
alert.showAndWait().ifPresent(rs -> {
|
|
if (rs == ButtonType.OK) {
|
|
System.out.println("Pressed OK.");
|
|
}
|
|
}); |