new JFileChooser(SocietyFinder.getInstance().getPath());
new JFileChooser(System.getProperty("org.cougaar.install.path")); chooser.setDialogTitle("Select directory of Agent INI files or a single Node INI to load");
  protected SocietyComponent createSocietyFromFile() {    // display file chooser to allow user to select file that defines society    JFileChooser chooser =       new JFileChooser(SocietyFinder.getInstance().getPath());    chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);    File file = null;    SocietyComponent sc = null;    while (file == null) {      int result = chooser.showDialog(organizer, "OK");      if (result != JFileChooser.APPROVE_OPTION)	return null;      file = chooser.getSelectedFile();    }    // create society from agent files or single node file    String name = "";    name = file.getName();    if (name.endsWith(".ini"))      name = name.substring(0, name.length()-4);    if (!organizer.isUniqueSocietyName(name))      name = organizer.getUniqueSocietyName(name, false);    if (name == null) return null;     if (file.isDirectory()) {      String[] filenames =        SocietyFinder.getInstance().getAgentFilenames(file);      if (filenames == null || filenames.length == 0) {	// Found no Agents	if (log.isWarnEnabled()) {	  log.warn("Found no agent in dir " + file.getPath());	}	return null;      }      sc = createSociety(name, filenames, SocietyFileComponent.class);    } else {      sc = createSociety(file.getPath(), name, SocietyFileComponent.class);    }    return sc;  }