public void actionPerformed(ActionEvent e) {
			if (curPerson < 0) { // Make sure we have a person to add the phone to
				JOptionPane.showMessageDialog(null, "Find a person first!");
				return;
			} 
			
			// Do different actions depending on which button was pressed
			String buttonText = ((JButton)e.getSource()).getText();
			try {
				// If the Add button was pressed...
				if (buttonText.equals("Add")) {
					String newphone = newPhoneTF.getText(); // Get the New Phone input
					// Don't allow blank or invalid phone numbers
					if (newphone.trim().equals("") || newphone.equals("")) {
						JOptionPane.showMessageDialog(null, "New Phone cannot be blank!");
						return;
					} else if (!newphone.matches("\\d{3}-\\d{3}-\\d{4}")) {
						JOptionPane.showMessageDialog(null, "New Phone number must be in valid format (xxx-xxx-xxxx)!");
						return;
					}
					addPhone(newphone);
					
				} else {
					String curphone = curPhoneTF.getText(); // Get the Current Phone input
					// Don't allow blank or invalid phone numbers
					if (curphone.trim().equals("") || curphone.equals("")) {
						JOptionPane.showMessageDialog(null, "Current Phone cannot be blank!");
						return;
					} else if (!curphone.matches("\\d{3}-\\d{3}-\\d{4}")) {
						JOptionPane.showMessageDialog(null, "Current Phone number must be in valid format (xxx-xxx-xxxx)!");
						return;
					}
					// If the Edit button was pressed...
					if (buttonText.equals("Edit")) { 
						
						editPhone();
	
					// If the Delete button was pressed...
					} else if (buttonText.equals("Delete")) {
						delPhone(true);
					}
				}
			} catch (SQLException e1) { // Handle Errors
				JOptionPane.showMessageDialog(null, "Database Error!");
			}
		}