public FriendListPanel(final ClientGUI parent) {
		setLayout(new BorderLayout(0, 0));

		list = new JList<String>();

		list.addListSelectionListener(new ListSelectionListener() {

			@Override
			public void valueChanged(ListSelectionEvent e) {
				if (!e.getValueIsAdjusting()) {
					try {
						int clientID = userIDs[list.getSelectedIndex()];
						String clientName = list.getSelectedValue();
						parent.createNewTab(clientName, clientID);
					} catch (Exception exception) {
						parent.displayErrorMessage("Please enter a valid ID");
					}
				}
			}
		});
		add(new JScrollPane(list), BorderLayout.CENTER);
	}