code: public Contact[] getSelectedContacts() {
  		int[] selected = getTable().getSelectedRows();
  		Contact[] contacts = new Contact[selected.length];
  		for (int i = 0; i < selected.length; i++) {
  			contacts[i] = (Contact) getTableModel().getElementAt(selected[i]);
  		}
  		return contacts;
  	}
docs: Get the array of selected Contact objects in the table.
  @return array of Contacts, zero length if nothing is selected