java - How do i make a Dialog box show up when a person has failed to put the correct password? -


OK this is my code, which I need to work on, the rest I think is probably irrelevant.

  Private zeros jButton1ActionPerformed (java.awt.event.ActionEvent evt) {int failT = 1; String Answer = Pass.get Text (); If (answer.equals (password)) {System.out.println ("right !!"); Pass.setText (""); } Else {failT = + 1; Pass.setText (""); If (unsuccessful> = 3) {Joppanpan. Shomosez dylog (empty, "Sorry, you have failed 3 times times"); }}}}  

I think you should replace

  FailT = + 1; With  

  failT + = 1;  

Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -