Browse Source

EmojiACtionListener

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

21
src/main/java/EmojiPicker.java

@ -11,13 +11,26 @@ public class EmojiPicker extends JPanel {
public EmojiPicker(JTextField textField) {
setLayout(new GridLayout(4, 3, 5, 5)); // Adjust grid layout parameters as needed
setLayout(new GridLayout(4, 3, 5, 5));
setPreferredSize(new Dimension(300, 200));
}
private class EmojiActionListener implements ActionListener {
private String emoji;
}
@Override
public void actionPerformed(ActionEvent e) {
System.out.println("Selected emoji: " + emoji);
textField.setText(textField.getText() + emoji);
}
}}

Loading…
Cancel
Save