public ActionSetData() {
super("Set Data", "Set Data File", "setdata", "ctrl A");
} // c'tor
public void actionPerformed(ActionEvent ae) {
ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
fc.setDialogTitle("Set Data File");
int rval = fc.showOpenDialog(GUI.this);
if (rval == JFileChooser.APPROVE_OPTION) {
AbstractFileLoader loader = fc.getLoader();
try {
if (loader != null)
m_Instances = loader.getDataSet();
if (m_Instances.classIndex() == -1)
m_Instances.setClassIndex(m_Instances.numAttributes() - 1);