if (m_StorePredictionsBut.isSelected()) {
sp = (VisualizePanel)m_History.getSelectedObject(); /*    if (m_StorePredictionsBut.isSelected()) {
  protected void visualizeClassifier() {    final VisualizePanel sp;    if (m_StorePredictionsBut.isSelected()) {      sp = m_History.getSelectedVis();    } else {      sp = m_CurrentVis;    }    if (sp != null) {      String plotName = sp.getName(); 	final javax.swing.JFrame jf = 	new javax.swing.JFrame("Weka Classifier Visualize: "+plotName);	jf.setSize(500,400);	jf.getContentPane().setLayout(new BorderLayout());    //    final VisualizePanel sp = new VisualizePanel();	jf.getContentPane().add(sp, BorderLayout.CENTER);	jf.addWindowListener(new java.awt.event.WindowAdapter() {	  public void windowClosing(java.awt.event.WindowEvent e) {	    jf.dispose();	  }	});    //      jf.pack();	/*    sp.setInstances(m_predInstances);    sp.setPredictions(m_predictions);    sp.setColourIndex(m_predInstances.classIndex()); */    jf.setVisible(true);    /*     try {      sp.setXIndex(m_visXIndex); sp.setYIndex(m_visYIndex);    } catch (Exception ex) {      System.err.println(ex);    }    sp.addActionListener(new ActionListener() {	public void actionPerformed(ActionEvent e) {	  if (sp.getInstances().	      relationName().compareTo(m_Instances.relationName()) == 0) {	    setXY_VisualizeIndexes(sp.getXIndex(), sp.getYIndex());	  }	}      });    if (m_predInstances.attribute(m_predInstances.classIndex()).isNumeric()) {      sp.setPredictionsNumeric(true);    } else {      sp.setPredictionsNumeric(false);      } */    }  }