private void validateFields(){
  String url=urlCombo.getText();
  if (url.length() == 0) {
    setErrorMessage(null);
    setPageComplete(false);
    return;
  }
  try {
    new SVNUrl(url);
  }
 catch (  MalformedURLException e) {
    setErrorMessage(Policy.bind("ConfigurationWizardMainPage.invalidUrl",e.getMessage()));
    setPageComplete(false);
    return;
  }
  setErrorMessage(null);
  setPageComplete(true);
}

private void validateFields ( ) { String url = urlCombo . getText ( ) ; if ( url . length ( ) == 0 ) { setErrorMessage ( null ) ; setPageComplete ( false ) ; return ; } try { new SVNUrl ( url ) ; } catch ( MalformedURLException e ) { setErrorMessage ( Policy . bind ( "ConfigurationWizardMainPage.invalidUrl" , e . getMessage ( ) ) ) ; setPageComplete ( false ) ; return ; } setErrorMessage ( null ) ; setPageComplete ( true ) ; }
validates the contents of the editable fields and set page completion and error messages appropriately . call each time url or username is modified
