Browse Source

JDialog in showEmojiPicker()

remotes/origin/client-handler
Valentin Spiroski 11 months ago
parent
commit
ea4be8a1e1
  1. 7
      src/main/java/ChatClient.java

7
src/main/java/ChatClient.java

@ -142,7 +142,12 @@ public class ChatClient extends JFrame implements KeyListener {
} }
private void showEmojiPicker() { private void showEmojiPicker() {
JDialog emojiDialog = new JDialog(this, "Emoji Picker", true);
emojiDialog.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
emojiDialog.getContentPane().add(emojiPicker);
emojiDialog.pack();
emojiDialog.setLocationRelativeTo(this);
emojiDialog.setVisible(true);
} }

Loading…
Cancel
Save