ex.printStackTrace();
  private void saveExperiment() {    int returnVal = m_FileChooser.showSaveDialog(this);    if (returnVal != JFileChooser.APPROVE_OPTION) {      return;    }    File expFile = m_FileChooser.getSelectedFile();    if (!expFile.getName().toLowerCase().endsWith(".exp")) {      expFile = new File(expFile.getParent(), expFile.getName() + ".exp");    }    try {      FileOutputStream fo = new FileOutputStream(expFile);      ObjectOutputStream oo = new ObjectOutputStream(			      new BufferedOutputStream(fo));      oo.writeObject(m_Exp);      oo.close();      System.err.println("Saved experiment:\n" + m_Exp);    } catch (Exception ex) {      JOptionPane.showMessageDialog(this, "Couldn't save experiment file:\n"				    + expFile				    + "\nReason:\n" + ex.getMessage(),				    "Save Experiment",				    JOptionPane.ERROR_MESSAGE);    }  }