Browse Source

Emoji Button in ChatClient

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
ad72a8166c
  1. 5
      src/main/java/ChatClient.java

5
src/main/java/ChatClient.java

@ -126,6 +126,11 @@ public class ChatClient extends JFrame implements KeyListener {
inputPanel.add(inputTextField, BorderLayout.CENTER); inputPanel.add(inputTextField, BorderLayout.CENTER);
emojiPicker = new EmojiPicker(inputTextField); 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(outputScrollPane, BorderLayout.CENTER);
add(inputTextField, BorderLayout.PAGE_END); add(inputTextField, BorderLayout.PAGE_END);

Loading…
Cancel
Save