Browse Source

refactoring: Kommentare + formatieren

remotes/origin/server
Paul Kattenborn 11 months ago
parent
commit
c089275208
  1. 4
      src/main/java/ChatGUI.java

4
src/main/java/ChatGUI.java

@ -87,6 +87,7 @@ public class ChatGUI implements ActionListener {
JScrollPane outputScrollPane = new JScrollPane(outputTextArea);
gui.add(outputScrollPane, BorderLayout.CENTER);
// Set up the input panel with text field and send button
JPanel inputPanel = new JPanel(new BorderLayout());
inputPanel.add(inputTextField, BorderLayout.CENTER);
inputPanel.add(sendButton, BorderLayout.EAST);
@ -102,6 +103,7 @@ public class ChatGUI implements ActionListener {
gui.setSize(quarterWidth, quarterHeight);
gui.setVisible(true);
}
// main methode zum Testen, müsste bei Implementation entfernt werden
public static void main(String[] args) {
@ -138,7 +140,5 @@ public class ChatGUI implements ActionListener {
outputTextArea.setFont(outputTextArea.getFont().deriveFont(Font.PLAIN, 20));
}
}
}
Loading…
Cancel
Save