else if (e.getCommand() == e.REMOVE_CHILDREN) {
else if (e.getCommand() == TreeDisplayEvent.REMOVE_CHILDREN) {
  public void userCommand(TreeDisplayEvent e) {        if (m_propertyDialog != null) {      m_propertyDialog.dispose();      m_propertyDialog = null;    }    try {      if (m_iView == null || m_tView == null) {	//throw exception      }      if (e.getCommand() == e.NO_COMMAND) {	//do nothing      }      else if (e.getCommand() == e.ADD_CHILDREN) {	//highlight the particular node and reset the vis panel	if (m_top == null) {	  //this shouldn't happen , someone elses code would 	  //have to have added a trigger to this listener.	  System.out.println("Error : Received event from a TreeDisplayer"			     + " that is unknown to the classifier.");	}	else {	  m_tView.setHighlight(e.getID());	  /*if (m_iView == null)	    {	    m_iView = new VisualizePanel(this);	    m_iView.setSize(400, 300);	    }*/	  m_focus = m_top.getNode(e.getID());	  m_iView.setInstances(m_focus.m_training);	  if (m_focus.m_attrib1 >= 0) {	    m_iView.setXIndex(m_focus.m_attrib1);	  }	  if (m_focus.m_attrib2 >= 0) {	    m_iView.setYIndex(m_focus.m_attrib2);	  }	  m_iView.setColourIndex(m_focus.m_training.classIndex());	  if (((Double)((FastVector)m_focus.m_ranges.elementAt(0)).	       elementAt(0)).intValue() != LEAF) {	    m_iView.setShapes(m_focus.m_ranges);	  }	  //m_iView.setSIndex(2);	}      }      else if (e.getCommand() == e.REMOVE_CHILDREN) {	/*if (m_iView == null)	  {	  m_iView = new VisualizePanel(this);	  m_iView.setSize(400, 300);	  }*/	m_focus = m_top.getNode(e.getID());	m_iView.setInstances(m_focus.m_training);	if (m_focus.m_attrib1 >= 0) {	  m_iView.setXIndex(m_focus.m_attrib1);	}	if (m_focus.m_attrib2 >= 0) {	  m_iView.setYIndex(m_focus.m_attrib2);	}	m_iView.setColourIndex(m_focus.m_training.classIndex());	if (((Double)((FastVector)m_focus.m_ranges.elementAt(0)).	     elementAt(0)).intValue() != LEAF) {	  m_iView.setShapes(m_focus.m_ranges);	}	//m_iView.setSIndex(2);	//now to remove all the stuff	m_focus.m_set1 = null;	m_focus.m_set2 = null;	m_focus.setInfo(m_focus.m_attrib1, m_focus.m_attrib2, null);	//tree_frame.getContentPane().removeAll();	m_tView = new TreeVisualizer(this, graph(), new PlaceNode2());	//tree_frame.getContentPane().add(m_tView);	m_reps.setComponentAt(0, m_tView);	//tree_frame.getContentPane().doLayout();	m_tView.setHighlight(m_focus.m_identity);      }      else if (e.getCommand() == e.CLASSIFY_CHILD) {	/*if (m_iView == null)	  {	  m_iView = new VisualizePanel(this);	  m_iView.setSize(400, 300);	  }*/	m_focus = m_top.getNode(e.getID());	m_iView.setInstances(m_focus.m_training);	if (m_focus.m_attrib1 >= 0) {	  m_iView.setXIndex(m_focus.m_attrib1);	}	if (m_focus.m_attrib2 >= 0) {	  m_iView.setYIndex(m_focus.m_attrib2);	}	m_iView.setColourIndex(m_focus.m_training.classIndex());	if (((Double)((FastVector)m_focus.m_ranges.elementAt(0)).	     elementAt(0)).intValue() != LEAF) {	  m_iView.setShapes(m_focus.m_ranges);	}			m_propertyDialog = new PropertyDialog(m_classifiers, 					      m_mainWin.getLocationOnScreen().x,					      m_mainWin.getLocationOnScreen().y);		//note property dialog may change all the time	//but the generic editor which has the listeners does not	//so at the construction of the editor is when I am going to add	//the listeners.				//focus.setClassifier(new IB1());	//tree_frame.getContentPane().removeAll();	//////m_tView = new Displayer(this, graph(), new PlaceNode2());	//tree_frame.getContentPane().add(m_tView);	//tree_frame.getContentPane().doLayout();	/////////////reps.setComponentAt(0, m_tView);	m_tView.setHighlight(m_focus.m_identity);      }      /*else if (e.getCommand() == e.SEND_INSTANCES) {	TreeClass source = m_top.getNode(e.getID());	m_iView.setExtInstances(source.m_training);	}*/      else if (e.getCommand() == e.ACCEPT) {		int well = JOptionPane.showConfirmDialog(m_mainWin, 						 "Are You Sure...\n"						 + "Click Yes To Accept The"						 + " Tree" 						 + "\n Click No To Return",						 "Accept Tree", 						 JOptionPane.YES_NO_OPTION);		if (well == 0) {	  m_mainWin.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);	  m_mainWin.dispose();	  blocker(false);  //release the thread waiting at blocker to 	  //continue.	}	      }    } catch(Exception er) {      System.out.println("Error : " + er);      System.out.println("Part of user input so had to catch here");      er.printStackTrace();    }  }