private String validateInputs(){
  if (jarRadio.getSelection()) {
    File f=new File(jarPath.getText());
    if (!f.exists()) {
      return "Jar file doesn't exists";
    }
    if (!f.canRead()) {
      return "Can't read Jar file directory";
    }
  }
 else {
    File f=new File(dirPath.getText());
    if (!f.exists()) {
      return "Base Path directory doesn't exists";
    }
    if (!f.canRead()) {
      return "Can't read Base Path directory";
    }
  }
  return null;
}

private String validateInputs ( ) { if ( jarRadio . getSelection ( ) ) { File f = new File ( jarPath . getText ( ) ) ; if ( ! f . exists ( ) ) { return "Jar file doesn't exists" ; } if ( ! f . canRead ( ) ) { return "Can't read Jar file directory" ; } } else { File f = new File ( dirPath . getText ( ) ) ; if ( ! f . exists ( ) ) { return "Base Path directory doesn't exists" ; } if ( ! f . canRead ( ) ) { return "Can't read Base Path directory" ; } } return null ; }
determine if the current set of analysis inputs are valid . if not , provide an error message that describes the problem .
