Browse Source

EmojiPicker.java

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
e2e6a702f1
  1. 27
      src/main/java/EmojiPicker.java

27
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
}
}
Loading…
Cancel
Save