|
@ -30,6 +30,8 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
outputTextArea.setEditable(false); |
|
|
outputTextArea.setEditable(false); |
|
|
outputTextArea.setBorder(BorderFactory.createTitledBorder("Chat")); |
|
|
outputTextArea.setBorder(BorderFactory.createTitledBorder("Chat")); |
|
|
|
|
|
|
|
|
|
|
|
outputScrollPane = new JScrollPane(outputTextArea); |
|
|
|
|
|
|
|
|
inputTextField = new JTextField(); |
|
|
inputTextField = new JTextField(); |
|
|
inputTextField.setBorder(BorderFactory.createTitledBorder("Nachricht eingeben")); |
|
|
inputTextField.setBorder(BorderFactory.createTitledBorder("Nachricht eingeben")); |
|
|
inputTextField.addKeyListener(this); |
|
|
inputTextField.addKeyListener(this); |
|
|