Browse Source

for loop in EmojiPicker

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
4a36e33afa
  1. 7
      src/main/java/EmojiPicker.java

7
src/main/java/EmojiPicker.java

@ -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));

Loading…
Cancel
Save