/**
* displays some properties of the instances
*/
public void showProperties() {
ArffPanel panel;
ListSelectorDialog dialog;
Vector props;
Instances inst;
panel = getCurrentPanel();
if (panel == null)
return;
inst = panel.getInstances();
if (inst == null)
return;
if (inst.classIndex() < 0)
inst.setClassIndex(inst.numAttributes() - 1);
// get some data
props = new Vector();
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Filename_Text") + panel.getFilename());
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Filename_Text") + inst.relationName());
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Instances_Text") + inst.numInstances());
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_Attributes_Text") + inst.numAttributes());
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_ClassAttribute_Text") + inst.classAttribute().name());
props.add(Messages.getInstance().getString("ArffViewerMainPanel_ShowProperties_ClassLabels_Text") + inst.numClasses());
dialog = new ListSelectorDialog(getParentFrame(), new JList(props));
dialog.showDialog();
}