private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed
        if(btnEdit.getText().equals("Editar")){
            String pass = JOptionPane.showInputDialog(this, "Ingrese su Password", "Confirmacion");
            if(pass!=null && getUser().pass(pass)){
                txtName.setEditable(true);
                txtEmail.setEditable(true);
                txtPass.setEditable(true);
                btnEdit.setText("Salvar");
            }else{
                JOptionPane.showMessageDialog(this, "Password Incorrecta!", "Error de Password", JOptionPane.ERROR_MESSAGE);
            }
        }else if(btnEdit.getText().equals("Salvar")){
            txtName.setEditable(false);
            txtEmail.setEditable(false);
            txtPass.setEditable(false);
            btnEdit.setText("Editar");
            
            getUser().setName(txtName.getText());
            getUser().setEmail(txtEmail.getText());
            getUser().setPassword(txtPass.getText()); 
        }
    }//GEN-LAST:event_btnEditActionPerformed