From 79c72ab0fe1726df4b4f4d9d82f0e2466e5a56aa Mon Sep 17 00:00:00 2001 From: Richard Schmidt Date: Thu, 8 Feb 2024 11:49:14 +0100 Subject: [PATCH] Added functionality to the signup button --- src/main/java/LoginGUI.java | 4 ++++ user.json | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/main/java/LoginGUI.java b/src/main/java/LoginGUI.java index 08b26b5..f8dad01 100644 --- a/src/main/java/LoginGUI.java +++ b/src/main/java/LoginGUI.java @@ -71,6 +71,10 @@ public class LoginGUI extends JFrame implements ActionListener { public void actionPerformed(ActionEvent e) { if (e.getSource() == loginButton) { login(); + }else if (e.getSource() == signUpButton) { + SignUpGUI signUpGUI = new SignUpGUI(); + signUpGUI.setVisible(true); + } } diff --git a/user.json b/user.json index 2dcd5ea..2bef498 100644 --- a/user.json +++ b/user.json @@ -19,5 +19,12 @@ "password": "Test", "birthday": "01.01.2000", "stayLoggedIn": false + }, + { + "id": "57b7fb2e-50c1-4027-8871-58cbfc8405c8", + "userName": "New", + "password": "123456", + "birthday": "", + "stayLoggedIn": false } ] \ No newline at end of file