|
|
@ -126,6 +126,11 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
|
inputPanel.add(inputTextField, BorderLayout.CENTER); |
|
|
|
emojiPicker = new EmojiPicker(inputTextField); |
|
|
|
|
|
|
|
JPanel emojiPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); |
|
|
|
emojiButton = new JButton("😀"); |
|
|
|
emojiButton.setPreferredSize(new Dimension(50, 50)); |
|
|
|
|
|
|
|
inputPanel.add(emojiPanel, BorderLayout.LINE_END); |
|
|
|
|
|
|
|
add(outputScrollPane, BorderLayout.CENTER); |
|
|
|
add(inputTextField, BorderLayout.PAGE_END); |
|
|
|