diff --git a/src/HomeFrame.java b/src/HomeFrame.java index 18c4f7f..00d9406 100644 --- a/src/HomeFrame.java +++ b/src/HomeFrame.java @@ -4,6 +4,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.net.URL; +import java.util.Arrays; @SuppressWarnings("serial") @@ -221,7 +222,7 @@ public static String getUsername() { } public static String getPasswordHF() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } @@ -242,6 +243,7 @@ public void actionPerformed(ActionEvent e) { username = HomeFrame.getUsername(); password = HomeFrame.getPasswordHF(); + System.out.println("pass="+password); CentralRegistry.desirializeUsers(); diff --git a/src/RegisterFrame.java b/src/RegisterFrame.java index 57db22c..4d75b15 100644 --- a/src/RegisterFrame.java +++ b/src/RegisterFrame.java @@ -215,7 +215,7 @@ public static JButton getRegisterButton() { } public static String getPassword() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } @@ -230,7 +230,7 @@ public static String getUsername() { } public static String getPasswordRF() { - return password.getPassword().toString(); + return String.valueOf(password.getPassword()); } public static String getDepString() {