From d0428d81ca59717d1e5404d6981dc18d36fbb7e0 Mon Sep 17 00:00:00 2001 From: Richard Schmidt Date: Wed, 7 Feb 2024 11:31:51 +0100 Subject: [PATCH] Added basic click functionality to login button --- src/main/java/LoginGUI.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/LoginGUI.java b/src/main/java/LoginGUI.java index 08b19a2..4df5634 100644 --- a/src/main/java/LoginGUI.java +++ b/src/main/java/LoginGUI.java @@ -39,7 +39,15 @@ public class LoginGUI extends JFrame implements ActionListener { @Override public void actionPerformed(ActionEvent e) { - + if (e.getSource() == loginButton) { + String username = usernameField.getText(); + String password = new String(passwordField.getPassword()); + + //Add login functionality + JOptionPane.showMessageDialog(this, "Login"); + + + } }