public Validator addSubmitButtons(Component... cmp){
  boolean isV=isValid();
  for (  Component c : cmp) {
    submitButtons.add(c);
    c.setEnabled(isV);
  }
  return this;
}

public Validator addSubmitButtons ( Component ... cmp ) { boolean isV = isValid ( ) ; for ( Component c : cmp ) { submitButtons . add ( c ) ; c . setEnabled ( isV ) ; } return this ; }
submit buttons ( or any other component type ) can be disabled until all components contain a valid value . notice that this method should be invoked after all the constraints are added so the initial state of the buttons will be correct .
