void warnMissingNames(File file){
  String result=checkMissingNames(file);
  if (result.equals("")) {
    JOptionPane.showMessageDialog(_who,"OK, all variables in file are known");
  }
 else {
    JOptionPane.showMessageDialog(_who,result);
  }
}

void warnMissingNames ( File file ) { String result = checkMissingNames ( file ) ; if ( result . equals ( "" ) ) { JOptionPane . showMessageDialog ( _who , "OK, all variables in file are known" ) ; } else { JOptionPane . showMessageDialog ( _who , result ) ; } }
check for names in programer that are not in names . xml
