|
|
@ -7,12 +7,14 @@ import java.awt.event.ActionListener; |
|
|
|
import javax.swing.JFrame; |
|
|
|
import javax.swing.JMenu; |
|
|
|
import javax.swing.JMenuBar; |
|
|
|
import javax.swing.JMenuItem; |
|
|
|
import javax.swing.JScrollPane; |
|
|
|
import javax.swing.JTextArea; |
|
|
|
import javax.swing.JTextField; |
|
|
|
|
|
|
|
public class ChatGUI implements ActionListener { |
|
|
|
|
|
|
|
|
|
|
|
JMenuItem exit = new JMenuItem("Exit"); |
|
|
|
JTextField inputTextField = new JTextField(); |
|
|
|
JTextArea outputTextArea = new JTextArea(); |
|
|
|
|
|
|
@ -29,8 +31,13 @@ public class ChatGUI implements ActionListener { |
|
|
|
|
|
|
|
JMenuBar bar = new JMenuBar(); |
|
|
|
gui.setJMenuBar(bar); |
|
|
|
|
|
|
|
JMenu options = new JMenu("options"); |
|
|
|
|
|
|
|
JMenu menu = new JMenu("File"); |
|
|
|
menu.add(exit); |
|
|
|
menu.add(options); |
|
|
|
bar.add(menu); |
|
|
|
|
|
|
|
bar.add(menu); |
|
|
|
|
|
|
|