×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: sumesh tg
Added: Nov 10, 2016 10:15 AM
Modified: Nov 10, 2016 10:16 AM
Views: 8
Tags: alert javafx
  1.     Alert alert = new Alert(Alert.AlertType.CONFIRMATION, "Are you sure want to select all !", 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(tableName.getScene().getWindow());
  5.                     alert.showAndWait();
  6.                     if (alert.getResult() == ButtonType.YES) {