public void actionPerformed(ActionEvent e) {
				DefaultMutableTreeNode node = (DefaultMutableTreeNode) OwnerTree
						.getLastSelectedPathComponent();
				if (node == null)
					// Nothing is selected.
					return;

				Object nodeInfo = node.getUserObject();
				if (node.isLeaf()) {
					Pet selectedPet = (Pet) nodeInfo;
					DefaultMutableTreeNode Parent = (DefaultMutableTreeNode) node
							.getParent();
					Owner selectedOwner = (Owner) Parent.getUserObject();
					int OwnerID;
					int PetID;
					Immunization.ImmunizationType Bordatella = Immunization.ImmunizationType.Bordatella;
					try {
						OwnerID = selectedOwner.getID();
						PetID = selectedPet.getID(OwnerID);

						if (lblBordatellaDate_Records.getText().compareTo(
								"No Record") == 0) {
							selectedPet.createImmunization(Bordatella, PetID);
						} else {
							selectedPet.updateImmunization(Bordatella, PetID);
						}
					} catch (SQLException e2) {
						e2.printStackTrace();
						JOptionPane
								.showMessageDialog(
										contentPane,
										"Immunization could not be updated at this time.",
										"Error", JOptionPane.ERROR_MESSAGE);
					}
				}
				windowGainedFocus();

			}