protected boolean validateText(final String text,final JLabel label,final IValidator IValidator){
  boolean valid=true;
  Color color=m_labelColor;
  if (!IValidator.isValid(text)) {
    valid=false;
    color=Color.RED;
    label.setForeground(color);
  }
  if (label != null) {
    label.setForeground(color);
  }
  return valid;
}

protected boolean validateText ( final String text , final JLabel label , final IValidator IValidator ) { boolean valid = true ; Color color = m_labelColor ; if ( ! IValidator . isValid ( text ) ) { valid = false ; color = Color . RED ; label . setForeground ( color ) ; } if ( label != null ) { label . setForeground ( color ) ; } return valid ; }
validates a the contents of textusing a specified validator . if the content is not valid the associated label is marked in red
