|
@ -134,7 +134,7 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
emojiButton = new JButton("😀"); // Create emoji button with a smiley face |
|
|
emojiButton = new JButton("😀"); // Create emoji button with a smiley face |
|
|
emojiButton.setPreferredSize(new Dimension(50, 50));// Set preferred size for the emoji button |
|
|
emojiButton.setPreferredSize(new Dimension(50, 50));// Set preferred size for the emoji button |
|
|
emojiButton.addActionListener(e -> showEmojiPicker());// Add action listener to show emoji picker when button is clicked |
|
|
emojiButton.addActionListener(e -> showEmojiPicker());// Add action listener to show emoji picker when button is clicked |
|
|
|
|
|
|
|
|
|
|
|
emojiPanel.add(emojiButton); // Add emoji button to panel |
|
|
inputPanel.add(emojiPanel, BorderLayout.LINE_END);// Add emoji panel to the right side of the input panel |
|
|
inputPanel.add(emojiPanel, BorderLayout.LINE_END);// Add emoji panel to the right side of the input panel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|