Skip to content
Snippets Groups Projects
Commit d90905f3 authored by pablo's avatar pablo
Browse files

Hecho

parent 5bc49d64
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,10 @@ public class ControladorCambiarPin {
this.cuenta = cuenta;
}
/**
* Cambia el pin de la cuenta por otro nuevo
* @param text pin nuevo
*/
public void cambiarPin(String text) {
if (text.length() == 4) {
cuenta.setPin(text);
......
......@@ -27,13 +27,15 @@ public class ControladorLogin {
this.cuenta = cuenta;
}
/**
*
*/
public void aceptarPIN (){
if(intentos>0){
if(Datos.findCuentaConPinBoolean(vista.getTextoPIN())){
this.cuenta = findCuentaConPin(vista.getTextoPIN());
devolverCuenta();
//a.addCuenta(cuenta);
vista.setMensaje("CORRECTO");
vista.setIntentos("");
vista.visibleOpciones();
......
......@@ -64,6 +64,9 @@ public class VistaLogin extends javax.swing.JFrame {
textoPIN.setText(nuevoPIN);
}
/**
* Pone visible las opciones despues de introducir el pin
*/
public void visibleOpciones(){
botonCajeroNormal.setVisible(true);
botonTransaccion.setVisible(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment