@ -38,6 +38,7 @@ public class ChatGUI implements ActionListener {
menu.add(exit);
menu.add(options);
bar.add(menu);
exit.addActionListener(this);
@ -64,7 +65,9 @@ public class ChatGUI implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
if (e.getSource() == exit) {
System.exit(0);
}