package Vistas;


import Modelo.*;
import java.util.Observable;
import java.util.Observer;
import javax.swing.JFrame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * jfrmPrincipal.java
 *
 * Created on 25-nov-2009, 17:35:50
 */

/**
 *
 * @author acc_local
 */
public class jfrmPrincipal extends javax.swing.JFrame implements Observer {
    Sucursal sucAux = new Sucursal();
    JFrame auxJf;
    /** Creates new form jfrmPrincipal */
    public jfrmPrincipal(Sucursal suc, JFrame jf) {
        auxJf=jf;
        initComponents();
        sucAux=suc;
        
        jtxtSaldoActualCaja.setText(String.valueOf(sucAux.saldoCaja(sucAux.dameDNIEmpleado())));
        Caja c = sucAux.busquedaCajaSucursal(sucAux.dameIdCaja());
        c.addObserver(this);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();
        jLabel6 = new javax.swing.JLabel();
        label1 = new java.awt.Label();
        jtxtSaldoActualCaja = new javax.swing.JTextField();
        jlblDoc1 = new javax.swing.JLabel();
        jbtnPersistencia = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jmiSeleccionarCuenta = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jmiRemesaCargo = new javax.swing.JMenuItem();
        jmiRemesaAbono = new javax.swing.JMenuItem();
        jmiTransferenciaInterna = new javax.swing.JMenuItem();
        jmiTransExterna = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jmiReintegro = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jmiCuentaCorriente = new javax.swing.JMenuItem();
        jmiLibretaAhorro = new javax.swing.JMenuItem();
        jmiPrestamoPersonal = new javax.swing.JMenuItem();
        jmiPrestamoHipotecario = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        jmiArqueo = new javax.swing.JMenuItem();
        jmiIngresarCaja = new javax.swing.JMenuItem();
        jmiRetirarCaja = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        jmiParteDiferencias = new javax.swing.JMenuItem();
        jmiPSalir = new javax.swing.JMenu();
        jmiSalir = new javax.swing.JMenuItem();

        jMenu4.setText("File");
        jMenuBar2.add(jMenu4);

        jMenu5.setText("Edit");
        jMenuBar2.add(jMenu5);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vistas/EstafadorLogo2.JPG"))); // NOI18N

        label1.setFont(new java.awt.Font("Comic Sans MS", 1, 52));
        label1.setText("SwindlerBank");

        jtxtSaldoActualCaja.setEditable(false);
        jtxtSaldoActualCaja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtxtSaldoActualCajaActionPerformed(evt);
            }
        });

        jlblDoc1.setFont(new java.awt.Font("Comic Sans MS", 0, 10));
        jlblDoc1.setText("Saldo Caja:");

        jbtnPersistencia.setText("Persistencia");
        jbtnPersistencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnPersistenciaActionPerformed(evt);
            }
        });

        jMenu1.setText("Consultas");
        jMenu1.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jMenuItem2.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem2.setText("Movimientos");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuItem3.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem3.setText("Domiciliaciones");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        jmiSeleccionarCuenta.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiSeleccionarCuenta.setText("Cuentas Cliente");
        jmiSeleccionarCuenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSeleccionarCuentaActionPerformed(evt);
            }
        });
        jMenu1.add(jmiSeleccionarCuenta);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Operaciones");
        jMenu2.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jmiRemesaCargo.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiRemesaCargo.setText("Remesa Cargo");
        jmiRemesaCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRemesaCargoActionPerformed(evt);
            }
        });
        jMenu2.add(jmiRemesaCargo);

        jmiRemesaAbono.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiRemesaAbono.setText("Remesa Abono");
        jmiRemesaAbono.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRemesaAbonoActionPerformed(evt);
            }
        });
        jMenu2.add(jmiRemesaAbono);

        jmiTransferenciaInterna.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiTransferenciaInterna.setText("Transferencia Interna");
        jmiTransferenciaInterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTransferenciaInternaActionPerformed(evt);
            }
        });
        jMenu2.add(jmiTransferenciaInterna);

        jmiTransExterna.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiTransExterna.setText("Transferencia Externa");
        jmiTransExterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTransExternaActionPerformed(evt);
            }
        });
        jMenu2.add(jmiTransExterna);

        jMenuItem7.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem7.setText("Ingreso");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem7);

        jmiReintegro.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiReintegro.setText("Reintegro");
        jmiReintegro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiReintegroActionPerformed(evt);
            }
        });
        jMenu2.add(jmiReintegro);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Productos");
        jMenu3.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jmiCuentaCorriente.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiCuentaCorriente.setText("Cuenta Corriente");
        jmiCuentaCorriente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiCuentaCorrienteActionPerformed(evt);
            }
        });
        jMenu3.add(jmiCuentaCorriente);

        jmiLibretaAhorro.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiLibretaAhorro.setText("Libreta de Ahorro");
        jmiLibretaAhorro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiLibretaAhorroActionPerformed(evt);
            }
        });
        jMenu3.add(jmiLibretaAhorro);

        jmiPrestamoPersonal.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiPrestamoPersonal.setText("Préstamo Personal");
        jmiPrestamoPersonal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPrestamoPersonalActionPerformed(evt);
            }
        });
        jMenu3.add(jmiPrestamoPersonal);

        jmiPrestamoHipotecario.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiPrestamoHipotecario.setText("Préstamo Hipotecario");
        jmiPrestamoHipotecario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPrestamoHipotecarioActionPerformed(evt);
            }
        });
        jMenu3.add(jmiPrestamoHipotecario);

        jMenuBar1.add(jMenu3);

        jMenu6.setText("GestionPuesto");
        jMenu6.setFont(new java.awt.Font("Comic Sans MS", 1, 11));
        jMenu6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu6ActionPerformed(evt);
            }
        });

        jmiArqueo.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiArqueo.setText("Arqueo");
        jmiArqueo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiArqueoActionPerformed(evt);
            }
        });
        jMenu6.add(jmiArqueo);

        jmiIngresarCaja.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiIngresarCaja.setText("Ingreso en Caja Central");
        jmiIngresarCaja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiIngresarCajaActionPerformed(evt);
            }
        });
        jMenu6.add(jmiIngresarCaja);

        jmiRetirarCaja.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jmiRetirarCaja.setText("Reintegro de Caja Central");
        jmiRetirarCaja.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRetirarCajaActionPerformed(evt);
            }
        });
        jMenu6.add(jmiRetirarCaja);

        jMenuItem1.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jMenuItem1.setText("Ver remesa generada");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu6.add(jMenuItem1);

        jmiParteDiferencias.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiParteDiferencias.setText("Partes de Diferencias");
        jmiParteDiferencias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiParteDiferenciasActionPerformed(evt);
            }
        });
        jMenu6.add(jmiParteDiferencias);

        jMenuBar1.add(jMenu6);

        jmiPSalir.setText("Salir");
        jmiPSalir.setFont(new java.awt.Font("Comic Sans MS", 1, 11));
        jmiPSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPSalirActionPerformed(evt);
            }
        });

        jmiSalir.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiSalir.setText("Salir");
        jmiSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSalirActionPerformed(evt);
            }
        });
        jmiPSalir.add(jmiSalir);

        jMenuBar1.add(jmiPSalir);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(235, 235, 235)
                .addComponent(jLabel6)
                .addGap(65, 65, 65)
                .addComponent(jbtnPersistencia)
                .addContainerGap(82, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(140, Short.MAX_VALUE)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(22, 22, 22))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(466, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jtxtSaldoActualCaja, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jlblDoc1))
                .addGap(72, 72, 72))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addComponent(jlblDoc1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jtxtSaldoActualCaja, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(37, 37, 37)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(23, 23, 23)
                        .addComponent(jLabel6))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(63, 63, 63)
                        .addComponent(jbtnPersistencia)))
                .addGap(34, 34, 34))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmiRemesaCargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRemesaCargoActionPerformed
        new jfrmRemesaCargos(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jmiRemesaCargoActionPerformed

    private void jmiReintegroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiReintegroActionPerformed
        new jfrmReintegr(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiReintegroActionPerformed

    private void jmiTransferenciaInternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTransferenciaInternaActionPerformed
        new jfrmTransInterna(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiTransferenciaInternaActionPerformed

    private void jmiTransExternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTransExternaActionPerformed
        new jfrmTransExterna(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiTransExternaActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        new jfrmIngreso(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jmiPSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPSalirActionPerformed
        this.dispose();
}//GEN-LAST:event_jmiPSalirActionPerformed

    private void jmiSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSalirActionPerformed
            this.dispose();// TODO add your handling code here:
    }//GEN-LAST:event_jmiSalirActionPerformed

    private void jmiCuentaCorrienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiCuentaCorrienteActionPerformed
        new jfrmCuentaCorriente(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jmiCuentaCorrienteActionPerformed

    private void jmiLibretaAhorroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiLibretaAhorroActionPerformed
        new jfrmLibretaAhorro(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiLibretaAhorroActionPerformed

    private void jmiPrestamoPersonalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPrestamoPersonalActionPerformed
        new jfrmPrestamoPersonal(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiPrestamoPersonalActionPerformed

    private void jmiPrestamoHipotecarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPrestamoHipotecarioActionPerformed
        new jfrmPrestamoHipotecario(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiPrestamoHipotecarioActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        new jfrmMovimientos(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jmiSeleccionarCuentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSeleccionarCuentaActionPerformed
        new jfrmSeleccionarCuentaCliente(sucAux,this,null,true).setVisible(true);
        this.setEnabled(false);
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiSeleccionarCuentaActionPerformed

    private void jMenu6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu6ActionPerformed
        
}//GEN-LAST:event_jMenu6ActionPerformed

    private void jmiArqueoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiArqueoActionPerformed
        new jfrmArqueo(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jmiArqueoActionPerformed

    private void jmiRemesaAbonoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRemesaAbonoActionPerformed
        new jfrmRemesaAbonos(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiRemesaAbonoActionPerformed

    private void jmiIngresarCajaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiIngresarCajaActionPerformed
        new jfrmIngresarCajaCentral(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiIngresarCajaActionPerformed

    private void jmiRetirarCajaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRetirarCajaActionPerformed
        new jfrmReintegroCajaCentral(sucAux,this).setVisible(true);
        this.setEnabled(false);// TODO add your handling code here:
    }//GEN-LAST:event_jmiRetirarCajaActionPerformed

    private void jtxtSaldoActualCajaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtxtSaldoActualCajaActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jtxtSaldoActualCajaActionPerformed

    private void jmiParteDiferenciasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiParteDiferenciasActionPerformed
        new jfrmParteDiferencias(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiParteDiferenciasActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        new jfrmDomiciliaciones(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jMenuItem3ActionPerformed


    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        new jfrmVisualizarRemesaG(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jMenuItem1ActionPerformed


    private void jbtnPersistenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnPersistenciaActionPerformed
        new jfrmVistaPpalPersistencia(this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jbtnPersistenciaActionPerformed


    /**
    * @param args the command line arguments
    
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new jfrmPrincipal().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel6;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JButton jbtnPersistencia;
    private javax.swing.JLabel jlblDoc1;
    private javax.swing.JMenuItem jmiArqueo;
    private javax.swing.JMenuItem jmiCuentaCorriente;
    private javax.swing.JMenuItem jmiIngresarCaja;
    private javax.swing.JMenuItem jmiLibretaAhorro;
    private javax.swing.JMenu jmiPSalir;
    private javax.swing.JMenuItem jmiParteDiferencias;
    private javax.swing.JMenuItem jmiPrestamoHipotecario;
    private javax.swing.JMenuItem jmiPrestamoPersonal;
    private javax.swing.JMenuItem jmiReintegro;
    private javax.swing.JMenuItem jmiRemesaAbono;
    private javax.swing.JMenuItem jmiRemesaCargo;
    private javax.swing.JMenuItem jmiRetirarCaja;
    private javax.swing.JMenuItem jmiSalir;
    private javax.swing.JMenuItem jmiSeleccionarCuenta;
    private javax.swing.JMenuItem jmiTransExterna;
    private javax.swing.JMenuItem jmiTransferenciaInterna;
    private javax.swing.JTextField jtxtSaldoActualCaja;
    private java.awt.Label label1;
    // End of variables declaration//GEN-END:variables

    public void update(Observable o, Object arg) {
        jtxtSaldoActualCaja.setText(String.valueOf(sucAux.saldoCaja(sucAux.dameDNIEmpleado())));
    }

}
