From 894f9ed00889afdd5cfe050d7da9a52d817eb5bf Mon Sep 17 00:00:00 2001 From: Valentin Spiroski Date: Fri, 9 Feb 2024 22:05:56 +0100 Subject: [PATCH] refactoring: EmojiPicker5 --- src/main/java/EmojiPicker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/EmojiPicker.java b/src/main/java/EmojiPicker.java index dfba42d..85963eb 100644 --- a/src/main/java/EmojiPicker.java +++ b/src/main/java/EmojiPicker.java @@ -51,8 +51,8 @@ public class EmojiPicker extends JPanel { @Override public void actionPerformed(ActionEvent e) { - System.out.println("Selected emoji: " + emoji); - textField.setText(textField.getText() + emoji); + System.out.println("Selected emoji: " + emoji); // Print selected emoji to console + textField.setText(textField.getText() + emoji); // Append selected emoji to text field } } }