From df7030b54717afec73cdc2099c00c2c80a2d33a2 Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Fri, 9 Feb 2024 21:37:39 +0100 Subject: [PATCH] shoWEmojiPicker() in ChatClient --- src/main/java/ChatClient.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/ChatClient.java b/src/main/java/ChatClient.java index 46bdc1a..b19c6a0 100644 --- a/src/main/java/ChatClient.java +++ b/src/main/java/ChatClient.java @@ -129,7 +129,7 @@ public class ChatClient extends JFrame implements KeyListener { JPanel emojiPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); emojiButton = new JButton("😀"); emojiButton.setPreferredSize(new Dimension(50, 50)); - + emojiButton.addActionListener(e -> showEmojiPicker()); inputPanel.add(emojiPanel, BorderLayout.LINE_END); add(outputScrollPane, BorderLayout.CENTER); @@ -140,6 +140,13 @@ public class ChatClient extends JFrame implements KeyListener { setDefaultCloseOperation(EXIT_ON_CLOSE); setLocationRelativeTo(null); } + + private void showEmojiPicker() { + + + } + + private void receiveMessages() { try { connectionToServer = new Socket(address, Constants.PORT);