public void actionPerformed(ActionEvent e) {
        	//get index of selected name
            int index = list.getSelectedIndex();
            
            //if something was selected
            if (index > -1) {
            	//get the selected username
	            String name = (String)list.getSelectedValue().toString();
	            
	            try {
		            //delete the user
		            Tuple t = FollowTools.deleteFollow(User.findUser(name, cnxn), currUser.getId(), cnxn);
		            
		            if ((Boolean)t.getTup1()) {
			            listModel.remove(index);
			 
			            int size = listModel.getSize();
			 
			            if (size == 0) { //Nobody's left, disable approving.
			            	if (!confirmedVal) {
			            		approveButton.setEnabled(false);
			            	}
			            	
			            	denyButton.setEnabled(false);
			                followBackButton.setEnabled(false);
			 
			            } else { //Select an index.
			                if (index == listModel.getSize()) {
			                    //removed item in last position
			                    index--;
			                }
			 
			                list.setSelectedIndex(index);
			                list.ensureIndexIsVisible(index);
			            }
		            } else {
		            	//TODO: alert user of problem
		            }
	            } catch (ClassCastException ex) {
	            	//TODO: handle problem getting boolean out of tup1
	            } 
            }
        }