private void setUpMenu() {
        // Create menu bar.
        menuBar = new JMenuBar();
        // Build the chat menu
        chat = new JMenu("Chat");
        chat.setMnemonic(KeyEvent.VK_C);
        chat.getAccessibleContext().setAccessibleDescription("Main Convo menu");
        menuBar.add(chat);
        chatExit = new JMenuItem("Leave Conversation");
        chatExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L,
                ActionEvent.CTRL_MASK));
        chatExit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                // Prompt the user to see if they really want to exit.
                int result = JOptionPane.showConfirmDialog(frame,
                        "Are you sure you want to exit the conversation?",
                        "Leave Conversation", JOptionPane.YES_NO_OPTION);

                if (result == JOptionPane.YES_OPTION) {
                    frame.setVisible(false);
                    frame.dispose();
                }
            }
        });
        
        // Add it to the top menu
        chat.add(chatExit);

        // Build the Help Menu
        help = new JMenu("Help");
        help.setMnemonic(KeyEvent.VK_H);
        help.getAccessibleContext().setAccessibleDescription("Help Menu");
        menuBar.add(help);
        
        // Items in the help menu
        // Contents
        helpContents = new JMenuItem("Contents");
        helpContents.setMnemonic(KeyEvent.VK_T);
        // On click, displays info about the program.
        helpContents.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JOptionPane.showMessageDialog(frame,
                            "This is a conversation box in a  simple peer to peer chat client.\n" +
                            "To send a message, simply type what you would like to send and then\n" +
                            "click on the send button. You can leave the conversation from the\n" +
                            "menu by going to Chat -> Leave. We hope you enjoy the program!",
                            "Contents", JOptionPane.INFORMATION_MESSAGE);
            }
        });
        help.add(helpContents);
        // About
        helpAbout = new JMenuItem("About");
        helpAbout.setMnemonic(KeyEvent.VK_F1);
        // On click, display the about
        helpAbout.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                JOptionPane
                        .showMessageDialog(
                                frame,
                                "Created by Dennis Smiley, Rohan Mahajan, and Andrew Dorne\n"
                                        + "for a 6.005 Project in Spring of 2012 at MIT.",
                                "About", JOptionPane.INFORMATION_MESSAGE);
            }
        });
        help.add(helpAbout);

        // Add the menu bar to the frame
        setJMenuBar(menuBar);
    }