*
*/
protected void setTestSet() {
if (m_SetTestFrame == null) {
final SetInstancesPanel sp = new SetInstancesPanel();
sp.setReadIncrementally(false);
m_Summary = sp.getSummary();
if (m_TestInstances != null) {
sp.setInstances(m_TestInstances);
}
sp.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent e) {
m_TestInstances = sp.getInstances();
m_TestInstances.setClassIndex(-1); // make sure that no class attribute is set!
}
});
// Add propertychangelistener to update m_TestInstances whenever
// it changes in the settestframe
m_SetTestFrame = new JFrame(Messages.getInstance().getString("ClustererPanel_SetUpVisualizableInstances_JFrame_Text"));
sp.setParentFrame(m_SetTestFrame); // enable Close-Button
m_SetTestFrame.getContentPane().setLayout(new BorderLayout());
m_SetTestFrame.getContentPane().add(sp, BorderLayout.CENTER);
m_SetTestFrame.pack();
}
m_SetTestFrame.setVisible(true);