×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: sumesh tg
Added: Nov 30, 2016 7:33 AM
Modified: Nov 30, 2016 7:35 AM
Views: 4
Tags: alert javafx
  1.            Alert alert = new Alert(Alert.AlertType.CONFIRMATION, "Are you sure want to delete !", ButtonType.YES, ButtonType.CANCEL);
  2.                         Stage stage = (Stage) alert.getDialogPane().getScene().getWindow();
  3.                         stage.getIcons().add(new Image(INALoginForm.class.getResourceAsStream("images/ia_logo.png")));
  4.                         stage.initOwner(btnRecordPayment.getScene().getWindow());
  5.                         alert.showAndWait();
  6.  
  7.                         if (alert.getResult() == ButtonType.YES) {
  8.  
  9.                         }