Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. if (lbl1.getText().equals("ACTIVADO")) {
  2.                if (btnPulsado==btnClave) {
  3.            
  4.                 String pass = new String();
  5.                 if (!pulsado) {
  6.                     txt.setText("Introduzca la nueva clave: ");
  7.                     pulsado=true;
  8.                 }
  9.                 else{
  10.                     pass = txt.getText();
  11.                     if (pass.length()<6) {
  12.                         txt.setText("Contraseña incorrecta.");
  13.                     }
  14.                     else{
  15.                         clave=pass;
  16.                         txt.setText("Contraseña cambiada.");
  17.                     }
  18.                 }  
  19.             }
  20.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement