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