Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

message box in javafx

Alert alert = new Alert(AlertType.INFORMATION);
alert.setTitle("Message Here...");
alert.setHeaderText("Look, an Information Dialog");
alert.setContentText("I have a great message for you!");
alert.showAndWait().ifPresent(rs -> {
    if (rs == ButtonType.OK) {
        System.out.println("Pressed OK.");
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #message #box #javafx
ADD COMMENT
Topic
Name
9+8 =