List<Village> toRemove = new LinkedList<Village>();
jChurchTable.invalidate();
for (int i = rows.length - 1; i >= 0; i--) {
int row = jChurchTable.convertRowIndexToModel(rows[i]);
int col = jChurchTable.convertColumnIndexToModel(1);
<BUG>Village v = ((Village) ((ChurchTableModel) jChurchTable.getModel()).getValueAt(row, col));
toRemove.add(v);</BUG>
}
jChurchTable.revalidate();
ChurchManager.getSingleton().removeChurches(toRemove.toArray(new Village[]{}));

List<Village> toRemove = new LinkedList<Village>();
jChurchTable.invalidate();
for (int i = rows.length - 1; i >= 0; i--) {
int row = jChurchTable.convertRowIndexToModel(rows[i]);
int col = jChurchTable.convertColumnIndexToModel(1);
Village v = ((Village) jChurchTable.getModel().getValueAt(row, col));
toRemove.add(v);
}
jChurchTable.revalidate();
ChurchManager.getSingleton().removeChurches(toRemove.toArray(new Village[]{}));
