if (inputFile != null && inputFile.exists()) jfc.setSelectedFile(inputFile);  jfc.setDialogTitle("Save Metrics data in file...");
  public void saveAsMetrics() {    JFileChooser jfc =       new JFileChooser(System.getProperty("org.cougaar.install.path"));    ExtensionFileFilter filter;    String[] filters = { "mtr" };    filter = new ExtensionFileFilter(filters, "Tasks Metric files");    jfc.addChoosableFileFilter(filter);    if(jfc.showSaveDialog(null) == JFileChooser.CANCEL_OPTION) {      return;    }    File file = jfc.getSelectedFile();    if(file != null) {      saveMetrics(file);    }  }