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