*/
  public void setInstances(Instances newInstances) {    m_Instances = newInstances;    m_TTester.setInstances(m_Instances);    m_FromLab.setText("Got " + m_Instances.numInstances() + " results");    // Temporarily remove the configuration listener    m_DatasetCombo.removeActionListener(m_ConfigureListener);    m_RunCombo.removeActionListener(m_ConfigureListener);        // Do other stuff    m_AttributeNames = new String [m_Instances.numAttributes()];    for (int i = 0; i < m_AttributeNames.length; i++) {      m_AttributeNames[i] = m_Instances.attribute(i).name();    }    m_DatasetCombo.setModel(new DefaultComboBoxModel(m_AttributeNames));    int datasetCol = 0;    for (int i = 0; i < m_AttributeNames.length; i++) {      if (m_AttributeNames[i].toLowerCase().indexOf("dataset") != -1) {	m_DatasetCombo.setSelectedIndex(i);	datasetCol = i;	break;      }    }    m_DatasetCombo.setEnabled(true);    m_RunCombo.setModel(new DefaultComboBoxModel(m_AttributeNames));    int runCol = 0;    for (int i = 0; i < m_AttributeNames.length; i++) {      if (m_AttributeNames[i].toLowerCase().indexOf("run") != -1) {	m_RunCombo.setSelectedIndex(i);	runCol = i;	break;      }    }    m_RunCombo.setEnabled(true);    m_ResultKeyModel.removeAllElements();    String selected = "";    String selectedList = "";    for (int i = 0; i < m_AttributeNames.length; i++) {      m_ResultKeyModel.addElement(m_AttributeNames[i]);      if (m_AttributeNames[i].toLowerCase().startsWith("key_")) {	if ((i != datasetCol) && (i != runCol)) {	  m_ResultKeyList.addSelectionInterval(i, i);	  selected += m_AttributeNames[i] + ' ';	  selectedList += "," + (i + 1);	}      }    }    m_ResultKeyBut.setEnabled(true);    // Reconnect the configuration listener    m_DatasetCombo.addActionListener(m_ConfigureListener);    m_RunCombo.addActionListener(m_ConfigureListener);        // Set up the TTester with the new data    m_TTester.setDatasetColumn(datasetCol);    m_TTester.setRunColumn(runCol);    Range generatorRange = new Range();    if (selectedList.length() != 0) {      try {	generatorRange.setRanges(selectedList);      } catch (Exception ex) {	ex.printStackTrace();	System.err.println(ex.getMessage());      }    }    m_TTester.setResultsetKeyColumns(generatorRange);    // Default test configurations    m_CompareCombo.setModel(new DefaultComboBoxModel(m_AttributeNames));    for (int i = 0; i < m_AttributeNames.length; i++) {      if (m_AttributeNames[i].toLowerCase().indexOf("percent_correct") != -1) {	m_CompareCombo.setSelectedIndex(i);	break;      }    }    m_CompareCombo.setEnabled(true);    m_SigTex.setEnabled(true);    setTTester();  }