public SimpleContact[] getAlllContacts()
{
TableSorter sorter = (TableSorter)contactTable.getModel();
SimpleContact[] result = new SimpleContact[sorter.getRowCount()];
for (int i = 0; i < result.length; i++) {
int row = sorter.mapToIndex(i);
result[i] = contactTableModel.getContact(row);
}
return result;
}