question: 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 ; }
target:  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.