code: public static boolean showConfirmation(Component component, String message) {
  		return JOptionPane.showConfirmDialog(SwingUtilities.getWindowAncestor(component), message,
  				UIManager.getString("OptionPane.titleText"),
  				JOptionPane.OK_OPTION | JOptionPane.CANCEL_OPTION) == JOptionPane.OK_OPTION;
  	}
docs: Affiche une boîte de dialogue de confirmation.
  @param component Component
  @param message String
  @return boolean