0

To verify whether i had entered the correct password or not?

before submitting login button i need to know that i had entered the correct password or the wrong one

18th Dec 2017, 10:45 AM
Hari Krishna
Hari Krishna - avatar
2 odpowiedzi
+ 28
//for netbeans java IDE ☺ 👉 u can use .equals() method to verify password if jpf1 is the variable name of jPasswordField1 , then String psd=new String (jpf1.getPassword()); if (psd.equals ("hari"){ //statement (s) }
18th Dec 2017, 12:21 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 1
Thanks gaurav can u give me the full code in java
19th Dec 2017, 4:56 AM
Hari Krishna
Hari Krishna - avatar