Browse Source

menue-Bar hinzugefügt

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
3048bfdef8
  1. 9
      src/main/java/ChatGUI.java

9
src/main/java/ChatGUI.java

@ -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);

Loading…
Cancel
Save