File file = jfc.getSelectedFile(); if (file == null)
File nfile = jfc.getSelectedFile(); if (nfile == null) {
  public void saveAsGraph() {    JFileChooser jfc = new JFileChooser(System.getProperty("org.cougaar.install.path"));    ExtensionFileFilter filter;    String[] filters = { "dot" };    filter = new ExtensionFileFilter(filters, "dot files");    jfc.addChoosableFileFilter(filter);    if (jfc.showSaveDialog(null) == JFileChooser.CANCEL_OPTION)      return;    File file = jfc.getSelectedFile();    if (file == null)      if(log.isWarnEnabled()) {        log.warn("CSMARTGraph: file is null");      }    saveGraph(file);  }