public static boolean confirmAction(String i18nKey,String propertyKey,Object... arguments){
  String propValue=ParameterService.getParameterValue(propertyKey);
  if (propValue != null) {
    if (propValue.equals(VALUE_TRUE)) {
      return true;
    }
 else     if (propValue.equals(VALUE_FALSE)) {
      return false;
    }
  }
  DecisionRememberingConfirmDialog d=new DecisionRememberingConfirmDialog(i18nKey,propertyKey,DialogType.CONFIRM,arguments);
  d.setVisible(true);
  return d.confirmed;
}

public static boolean confirmAction ( String i18nKey , String propertyKey , Object ... arguments ) { String propValue = ParameterService . getParameterValue ( propertyKey ) ; if ( propValue != null ) { if ( propValue . equals ( VALUE_TRUE ) ) { return true ; } else if ( propValue . equals ( VALUE_FALSE ) ) { return false ; } } DecisionRememberingConfirmDialog d = new DecisionRememberingConfirmDialog ( i18nKey , propertyKey , DialogType . CONFIRM , arguments ) ; d . setVisible ( true ) ; return d . confirmed ; }
shows a dialog which can be confirmed or not via yes / no buttons . if the user selects the " don ' t ask me again " checkbox , the user choice is remembered and applied automatically in the future .
