From 95ebfd47340fb373017ef0bca73e6eabd308e3a2 Mon Sep 17 00:00:00 2001 From: MrThanasiz <8089997+MrThanasiz@users.noreply.github.com> Date: Wed, 12 Jun 2019 19:01:40 +0300 Subject: [PATCH] Minor Fixes --- src/HomeFrame.java | 2 +- src/RegisterFrame.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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() {