public void actionPerformed(ActionEvent event)
	{
		if(event.getActionCommand().equals("Add"))
		{
			String name = userField.getText().trim();
			
			if (name.equals("") || name.equals("Enter User Name"))
				JOptionPane.showMessageDialog(null, "Invalid User Name");
			else
			{
				String key = randomKeyGenerator();
				while(isDuplicateKey(key))
					key = randomKeyGenerator();
				listModel.addElement(key + " " + accessOption[accessBox.getSelectedIndex()].substring(0,1)
						+ " " + name);
				saveSecurityFile();
				userField.setText("");
			}
		}
		else if(event.getActionCommand().equals("Delete") && userList.getSelectedIndex() > -1)
		{
			String user = userList.getSelectedValue();
			
			if(user.substring(7,8).equals("A") && administrators == 1)
				JOptionPane.showMessageDialog(null,"ERROR: Must Maintain At Least One Administrator Account");
			else
			{
				listModel.removeElementAt(userList.getSelectedIndex());
				if(user.substring(7,8).equals("A"))
					administrators--;
				saveSecurityFile();
			}
		}
			
	}