public void validateParam() throws Exception {
  Enumeration<AbstractParamPanel> en=tablePanel.elements();
  AbstractParamPanel panel=null;
  while (en.hasMoreElements()) {
    panel=en.nextElement();
    panel.validateParam(paramObject);
  }
}

public void validateParam ( ) throws Exception { Enumeration < AbstractParamPanel > en = tablePanel . elements ( ) ; AbstractParamPanel panel = null ; while ( en . hasMoreElements ( ) ) { panel = en . nextElement ( ) ; panel . validateParam ( paramObject ) ; } }
validates all panels , throwing an exception if there ' s any validation error . < p > the message of the exception can be shown in gui components ( for example , an error dialogue ) callers can expect an internationalised message .
