DialogResponse response = Dialogs.showConfirmDialog(stage, "Do you want to continue?", "Confirm Dialog", "title");
System.out.println("ConfirmDialog Response: " + response);
}
private void showConfirmDialogWithOptions(Stage stage) {
DialogResponse response = Dialogs.showConfirmDialog(stage, "Are you ok with this?",
"Confirm Dialog With Options", "title", DialogOptions.OK_CANCEL);
System.out.println("ConfirmDialog Response: " + response);
}