From e2e6a702f1fb67d313ddfde95d5ad54a011b4861 Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Fri, 9 Feb 2024 20:16:44 +0100 Subject: [PATCH] EmojiPicker.java --- src/main/java/EmojiPicker.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/main/java/EmojiPicker.java diff --git a/src/main/java/EmojiPicker.java b/src/main/java/EmojiPicker.java new file mode 100644 index 0000000..f4ad1d5 --- /dev/null +++ b/src/main/java/EmojiPicker.java @@ -0,0 +1,27 @@ +import javax.swing.*; +import java.awt.*; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; + + +public class EmojiPicker extends JPanel { + + private static final String[] emojis = {"😀", "😃", "😄", "😁", "😆", "😅", "😂", "🤣", "😊", "😇", "🙂", "🙃"}; + private JTextField textField; + + public EmojiPicker(JTextField textField) { + + setLayout(new GridLayout(4, 3, 5, 5)); // Adjust grid layout parameters as needed + + + } + + + } + + + + + + +