|
|
@ -5,6 +5,8 @@ import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
import javax.swing.JFrame; |
|
|
|
import javax.swing.JMenu; |
|
|
|
import javax.swing.JMenuBar; |
|
|
|
import javax.swing.JScrollPane; |
|
|
|
import javax.swing.JTextArea; |
|
|
|
import javax.swing.JTextField; |
|
|
@ -25,6 +27,13 @@ public class ChatGUI implements ActionListener { |
|
|
|
|
|
|
|
gui.setLayout(new BorderLayout()); |
|
|
|
|
|
|
|
JMenuBar bar = new JMenuBar(); |
|
|
|
gui.setJMenuBar(bar); |
|
|
|
|
|
|
|
JMenu menu = new JMenu("File"); |
|
|
|
|
|
|
|
bar.add(menu); |
|
|
|
|
|
|
|
// Set up the output text area with scrolling |
|
|
|
JScrollPane outputScrollPane = new JScrollPane(outputTextArea); |
|
|
|
gui.add(outputScrollPane, BorderLayout.CENTER); |
|
|
|