diff --git a/src/main/java/lol/hyper/customlauncher/login/windows/TwoFactorAuth.java b/src/main/java/lol/hyper/customlauncher/login/windows/TwoFactorAuth.java index aeb58fc..1fd56e5 100644 --- a/src/main/java/lol/hyper/customlauncher/login/windows/TwoFactorAuth.java +++ b/src/main/java/lol/hyper/customlauncher/login/windows/TwoFactorAuth.java @@ -92,6 +92,9 @@ public void keyTyped(KeyEvent e) { frame.add(panel); frame.setLocationRelativeTo(null); - SwingUtilities.invokeLater(()-> frame.setVisible(true)); + SwingUtilities.invokeLater(()-> { + frame.pack(); + frame.setVisible(true); + }); } }