|
@ -56,6 +56,7 @@ public class SignUpGUI extends JFrame implements ActionListener { |
|
|
CreateUser user = CreateUser.createUser(randomUUID.toString(), username, password, birthday); |
|
|
CreateUser user = CreateUser.createUser(randomUUID.toString(), username, password, birthday); |
|
|
user.saveToJsonFile("user.json"); |
|
|
user.saveToJsonFile("user.json"); |
|
|
JOptionPane.showMessageDialog(this, "User signed up successfully!"); |
|
|
JOptionPane.showMessageDialog(this, "User signed up successfully!"); |
|
|
|
|
|
dispose(); |
|
|
} catch (IllegalArgumentException ex) { |
|
|
} catch (IllegalArgumentException ex) { |
|
|
JOptionPane.showMessageDialog(this, "Error: " + ex.getMessage(), "Sign Up Error", JOptionPane.ERROR_MESSAGE); |
|
|
JOptionPane.showMessageDialog(this, "Error: " + ex.getMessage(), "Sign Up Error", JOptionPane.ERROR_MESSAGE); |
|
|
} |
|
|
} |
|
|