private void bindEditListener(){
  fieldValidator=new DataValidator(loginButton,serverField.getDocument(),serverPortField.getDocument(),usernameField.getDocument(),passwordField.getDocument());
}

private void bindEditListener ( ) { fieldValidator = new DataValidator ( loginButton , serverField . getDocument ( ) , serverPortField . getDocument ( ) , usernameField . getDocument ( ) , passwordField . getDocument ( ) ) ; }
prepare the field validator and bind it to the relevant text fields .
