|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|