public void valueChanged(TreeSelectionEvent arg0) {
				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();
					UpdateRecordLabels(selectedOwner, selectedPet);
				} else {
					Owner selectedOwner = (Owner) nodeInfo;
					UpdateRecordLabels(selectedOwner);
				}
			}