diff --git a/src/main/java/EmojiPicker.java b/src/main/java/EmojiPicker.java index c641c38..73bb1db 100644 --- a/src/main/java/EmojiPicker.java +++ b/src/main/java/EmojiPicker.java @@ -13,7 +13,12 @@ public class EmojiPicker extends JPanel { setLayout(new GridLayout(4, 3, 5, 5)); - + for (String emoji : emojis) { + JButton emojiButton = new JButton(emoji); + emojiButton.setFont(new Font("Segoe UI Emoji", Font.PLAIN, 20)); + emojiButton.addActionListener(new EmojiActionListener(emoji)); + add(emojiButton); + } setPreferredSize(new Dimension(300, 200));