submit.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
int selection = characterMenu.getSelectedIndex();
characterChoice = (CharacterName)characterMenu.getItemAt(selection);
controller.fireCharacterSelectedEvent(new CharacterSelectedEvent(this, characterChoice));
jfrm.setVisible(false);
/* TODO: There is still a chance that a user's choice may not be
* available even with the updating menu. If the server cannot
* honor user choice, then it should send a message display a