Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

javafx open alert window

Alert alert = new Alert(AlertType.CONFIRMATION, "Delete " + selection + " ?", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);
alert.showAndWait();

if (alert.getResult() == ButtonType.YES) {
    //do stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javafx #open #alert #window
ADD COMMENT
Topic
Name
7+4 =