diff --git a/src/HomeFrame.java b/src/HomeFrame.java index b15de7c..18c4f7f 100644 --- a/src/HomeFrame.java +++ b/src/HomeFrame.java @@ -221,7 +221,7 @@ public static String getUsername() { } public static String getPasswordHF() { - return password.getText(); + return password.getPassword().toString(); } diff --git a/src/RegisterFrame.java b/src/RegisterFrame.java index ac6b571..57db22c 100644 --- a/src/RegisterFrame.java +++ b/src/RegisterFrame.java @@ -154,7 +154,7 @@ public void passwordLabelBelow() { passwordLabelBelowPanel = new JPanel(); passwordLabelBelowPanel.setPreferredSize(new Dimension(MESSAGE_PANEL_WIDTH , MESSAGE_PANEL_HEIGHT)); - JLabel labela = new JLabel("Remember , password must be atleast 6 characters long , including one lower case or upper case letter!"); + JLabel labela = new JLabel("Remember , password must be atleast 6 characters long , including atleast one number and one letter!"); passwordLabelBelowPanel.add(labela); @@ -215,7 +215,7 @@ public static JButton getRegisterButton() { } public static String getPassword() { - return password.getText(); + return password.getPassword().toString(); } @@ -230,7 +230,7 @@ public static String getUsername() { } public static String getPasswordRF() { - return password.getText(); + return password.getPassword().toString(); } public static String getDepString() {