@ -142,7 +142,12 @@ public class ChatClient extends JFrame implements KeyListener {
}
private void showEmojiPicker() {
JDialog emojiDialog = new JDialog(this, "Emoji Picker", true);
emojiDialog.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
emojiDialog.getContentPane().add(emojiPicker);
emojiDialog.pack();
emojiDialog.setLocationRelativeTo(this);
emojiDialog.setVisible(true);