this.table = table;
}
public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting()){
Region region = null;
if (table.getSelectedColumn()!=-1)
region = (Region) table.getAnnotationModel().getValueAt(0, table.getSelectedColumn());
if ((currentRegion != null && region == null) || (region != null && !region.equals(currentRegion))){
mainFrame.eventDispatcher.dispatchEvent(new EventRegionSelectionChanged(region));
}
}
}