@Override
	public void valueChanged(ListSelectionEvent event) {
		/* This listener updates the value of the textbox with the game host's name
		 * when they are selected in the list. */
		if (event.getSource() == gamesList && !event.getValueIsAdjusting()) {
			String nameOfGameHost = (String) gamesList.getSelectedValue();
			if (nameOfGameHost != null) {
				nameofHosterField.setText(nameOfGameHost);
			}
		}

	}