|
@ -13,7 +13,12 @@ public class EmojiPicker extends JPanel { |
|
|
|
|
|
|
|
|
setLayout(new GridLayout(4, 3, 5, 5)); |
|
|
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)); |
|
|
setPreferredSize(new Dimension(300, 200)); |
|
|
|
|
|
|
|
|