} else if (m_ResultsDestinationCBox.getSelectedItem() == DEST_ARFF_TEXT) { m_destinationFilename = m_ResultsDestinationPathTField.getText(); if (m_Exp.getResultListener() instanceof InstancesResultListener) { ((InstancesResultListener)m_Exp.getResultListener()).setOutputFile(new File(m_destinationFilename));
} else { File resultsFile = null;   if (m_destinationFilename.equals("")) { try { resultsFile = File.createTempFile("weka_experiment", null); resultsFile.deleteOnExit(); } catch (Exception e) { System.err.println("Cannot create temp file, writing to standard out."); resultsFile = new File("-"); } } else { resultsFile = new File(m_destinationFilename);
  private void destinationAddressChanged() {    if (m_Exp == null) return;    if (m_ResultsDestinationCBox.getSelectedItem() == DEST_DATABASE_TEXT) {      m_destinationDatabaseURL = m_ResultsDestinationPathTField.getText();      if (m_Exp.getResultListener() instanceof DatabaseResultListener) {	((DatabaseResultListener)m_Exp.getResultListener()).setDatabaseURL(m_destinationDatabaseURL);      }    } else if (m_ResultsDestinationCBox.getSelectedItem() == DEST_ARFF_TEXT) {      m_destinationFilename = m_ResultsDestinationPathTField.getText();      if (m_Exp.getResultListener() instanceof InstancesResultListener) {	((InstancesResultListener)m_Exp.getResultListener()).setOutputFile(new File(m_destinationFilename));      }    } else if (m_ResultsDestinationCBox.getSelectedItem() == DEST_CSV_TEXT) {      m_destinationFilename = m_ResultsDestinationPathTField.getText();      if (m_Exp.getResultListener() instanceof CSVResultListener) {	((CSVResultListener)m_Exp.getResultListener()).setOutputFile(new File(m_destinationFilename));      }    }    m_Support.firePropertyChange("", null, null);  }