ex.printStackTrace();
  public void setInstances(Instances inst) {    m_Instances = inst;    try {      Runnable r = new Runnable() {	public void run() {	  m_InstSummaryPanel.setInstances(m_Instances);	  m_AttPanel.setInstances(m_Instances);	  m_AttSummaryPanel.setInstances(m_Instances);	  m_AttVisualizePanel.setInstances(m_Instances);	  // select the first attribute in the list	  m_AttPanel.getSelectionModel().setSelectionInterval(0, 0);	  m_AttSummaryPanel.setAttribute(0);	  m_AttVisualizePanel.setAttribute(0);	  m_ApplyFilterBut.setEnabled(true);	  m_Log.logMessage("Base relation is now "			   + m_Instances.relationName()			   + " (" + m_Instances.numInstances()			   + " instances)");	  m_Log.statusMessage("OK");	  // Fire a propertychange event	  m_Support.firePropertyChange("", null, null);	}      };      if (SwingUtilities.isEventDispatchThread()) {	r.run();      } else {	SwingUtilities.invokeAndWait(r);      }    } catch (Exception ex) {      JOptionPane.showMessageDialog(this,				    "Problem setting base instances:\n"				    + ex.getMessage(),				    "Instances",				    JOptionPane.ERROR_MESSAGE);    }  }