validationResultModel.setResult(result);
return result;
}
public static void UpdateUI(JTextComponent comp, ValidationResult valResult){
Severity severity = ValidationComponentUtils.getSeverity(comp);
BalloonTip tip = (BalloonTip) comp.getClientProperty("Balloon");
if (tip!=null) tip.closeBalloon();
if (valResult.hasErrors()){
if (severity!=Severity.ERROR){
comp.setBackground(ERROR_BACKGROUND);