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

/*
 * JFPrincipal.java
 *
 * Created on 13-oct-2010, 12:44:17
 */

package vistas;

import java.util.Observer;
import java.util.Observable;
import javabbuva.*;

/**
 *
 * @author Adrian
 */
public class JFPrincipal extends javax.swing.JFrame implements Observer {

    ControladorBD cbd = new ControladorBD();

    Sucursal su;
    //Necesario para los ingresos y reintegros y origen de transferencia
    public String auxiliar;
    public boolean escogida;
    //Necesario para los movimientos con detalle
    public String auxiliarmov;
    public boolean escogidamov;
    //Necesario para destino de tranferencia
    public String auxiliardes;
    public boolean escogidades;

    /** Creates new form JFPrincipal */
    public JFPrincipal(Sucursal su) {
        this.su = su;
        auxiliar = "";
        escogida = false;
        auxiliarmov = "";
        escogidamov = false;
        auxiliardes = "";
        escogidades = false;
        initComponents();
    }

    //MODELO VISTA CONTROLADOR
    public void update(Observable o, Object arg){
        String saldo = String.valueOf(arg);
        jLSaldo.setText(saldo);
    }

    /** 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() {

        Logo = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jLSaldo = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jLClientes = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMConsultas = new javax.swing.JMenu();
        jMVerCuentas = new javax.swing.JMenuItem();
        jMUltimosMov = new javax.swing.JMenuItem();
        jMMovDetalle = new javax.swing.JMenuItem();
        jMDomiciliaciones = new javax.swing.JMenuItem();
        jMVerTitulares = new javax.swing.JMenuItem();
        jMOperaciones = new javax.swing.JMenu();
        jMBasicas = new javax.swing.JMenu();
        jMIngreso = new javax.swing.JMenuItem();
        jMReintegro = new javax.swing.JMenuItem();
        jMTransferencia = new javax.swing.JMenu();
        jMInterna = new javax.swing.JMenuItem();
        jMExterna = new javax.swing.JMenuItem();
        jMRemesas = new javax.swing.JMenu();
        jMCargo = new javax.swing.JMenuItem();
        jMAbono = new javax.swing.JMenuItem();
        jMAltaNueva = new javax.swing.JMenu();
        jMLibreta = new javax.swing.JMenuItem();
        jMCuenta = new javax.swing.JMenuItem();
        jMPersonal = new javax.swing.JMenuItem();
        jMHipotecario = new javax.swing.JMenuItem();
        jMGestion = new javax.swing.JMenu();
        jMIngresoCentral = new javax.swing.JMenuItem();
        jMPedirCentral = new javax.swing.JMenuItem();
        jMArqueoFinal = new javax.swing.JMenuItem();
        jMVerPartes = new javax.swing.JMenuItem();
        jMEmpleados = new javax.swing.JMenu();
        jMvisualizarEmpleados = new javax.swing.JMenuItem();
        jMcrearEmpleado = new javax.swing.JMenuItem();
        jMvisualizarArqueos = new javax.swing.JMenuItem();
        jMmodificarEmpleado = new javax.swing.JMenuItem();
        jMAyuda = new javax.swing.JMenu();
        jMAcercaDe = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setResizable(false);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
            public void windowClosed(java.awt.event.WindowEvent evt) {
                formWindowClosed(evt);
            }
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        Logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vistas/Logo.png"))); // NOI18N

        jLabel1.setForeground(new java.awt.Color(51, 51, 51));
        jLabel1.setText("Saldo actual en caja:");

        jLSaldo.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLSaldo.setForeground(new java.awt.Color(51, 51, 51));
        jLSaldo.setText("0");
        jLSaldo.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

        jButton1.setText("Ver numero de clientes");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jMConsultas.setText("Consultas");

        jMVerCuentas.setText("Ver cuentas");
        jMVerCuentas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMVerCuentasActionPerformed(evt);
            }
        });
        jMConsultas.add(jMVerCuentas);

        jMUltimosMov.setText("Ultimos movimientos");
        jMUltimosMov.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMUltimosMovActionPerformed(evt);
            }
        });
        jMConsultas.add(jMUltimosMov);

        jMMovDetalle.setText("Movimiento en detalle");
        jMMovDetalle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMMovDetalleActionPerformed(evt);
            }
        });
        jMConsultas.add(jMMovDetalle);

        jMDomiciliaciones.setText("Domiciliaciones de una cuenta");
        jMDomiciliaciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMDomiciliacionesActionPerformed(evt);
            }
        });
        jMConsultas.add(jMDomiciliaciones);

        jMVerTitulares.setText("Ver titulares de un producto");
        jMVerTitulares.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMVerTitularesActionPerformed(evt);
            }
        });
        jMConsultas.add(jMVerTitulares);

        jMenuBar1.add(jMConsultas);

        jMOperaciones.setText("Operaciones");

        jMBasicas.setText("Basicas");

        jMIngreso.setText("Ingreso");
        jMIngreso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMIngresoActionPerformed(evt);
            }
        });
        jMBasicas.add(jMIngreso);

        jMReintegro.setText("Reintegro");
        jMReintegro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMReintegroActionPerformed(evt);
            }
        });
        jMBasicas.add(jMReintegro);

        jMOperaciones.add(jMBasicas);

        jMTransferencia.setText("Transferencia");

        jMInterna.setText("Interna");
        jMInterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMInternaActionPerformed(evt);
            }
        });
        jMTransferencia.add(jMInterna);

        jMExterna.setText("Externa");
        jMExterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMExternaActionPerformed(evt);
            }
        });
        jMTransferencia.add(jMExterna);

        jMOperaciones.add(jMTransferencia);

        jMRemesas.setText("Remesas");

        jMCargo.setText("Cargo");
        jMCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCargoActionPerformed(evt);
            }
        });
        jMRemesas.add(jMCargo);

        jMAbono.setText("Abono");
        jMAbono.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAbonoActionPerformed(evt);
            }
        });
        jMRemesas.add(jMAbono);

        jMOperaciones.add(jMRemesas);

        jMenuBar1.add(jMOperaciones);

        jMAltaNueva.setText("Alta nueva");

        jMLibreta.setText("Libreta de ahorro");
        jMLibreta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMLibretaActionPerformed(evt);
            }
        });
        jMAltaNueva.add(jMLibreta);

        jMCuenta.setText("Cuenta corriente");
        jMCuenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMCuentaActionPerformed(evt);
            }
        });
        jMAltaNueva.add(jMCuenta);

        jMPersonal.setText("Prestamo personal");
        jMPersonal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMPersonalActionPerformed(evt);
            }
        });
        jMAltaNueva.add(jMPersonal);

        jMHipotecario.setText("Prestamo hipotecario");
        jMHipotecario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMHipotecarioActionPerformed(evt);
            }
        });
        jMAltaNueva.add(jMHipotecario);

        jMenuBar1.add(jMAltaNueva);

        jMGestion.setText("Gestion");

        jMIngresoCentral.setText("Ingreso en caja central");
        jMIngresoCentral.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMIngresoCentralActionPerformed(evt);
            }
        });
        jMGestion.add(jMIngresoCentral);

        jMPedirCentral.setText("Pedir dinero a caja central");
        jMPedirCentral.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMPedirCentralActionPerformed(evt);
            }
        });
        jMGestion.add(jMPedirCentral);

        jMArqueoFinal.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Q, java.awt.event.InputEvent.CTRL_MASK));
        jMArqueoFinal.setText("Arqueo final");
        jMArqueoFinal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMArqueoFinalActionPerformed(evt);
            }
        });
        jMGestion.add(jMArqueoFinal);

        jMVerPartes.setText("Ver partes de diferencia");
        jMVerPartes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMVerPartesActionPerformed(evt);
            }
        });
        jMGestion.add(jMVerPartes);

        jMenuBar1.add(jMGestion);

        jMEmpleados.setText("Empleados");

        jMvisualizarEmpleados.setText("Visualizar empleados");
        jMvisualizarEmpleados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMvisualizarEmpleadosActionPerformed(evt);
            }
        });
        jMEmpleados.add(jMvisualizarEmpleados);

        jMcrearEmpleado.setText("Crear empleado");
        jMcrearEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMcrearEmpleadoActionPerformed(evt);
            }
        });
        jMEmpleados.add(jMcrearEmpleado);

        jMvisualizarArqueos.setText("Visualizar arqueos");
        jMvisualizarArqueos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMvisualizarArqueosActionPerformed(evt);
            }
        });
        jMEmpleados.add(jMvisualizarArqueos);

        jMmodificarEmpleado.setText("Modificar empleado");
        jMmodificarEmpleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMmodificarEmpleadoActionPerformed(evt);
            }
        });
        jMEmpleados.add(jMmodificarEmpleado);

        jMenuBar1.add(jMEmpleados);

        jMAyuda.setText("Ayuda");

        jMAcercaDe.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        jMAcercaDe.setText("Acerca de");
        jMAcercaDe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMAcercaDeActionPerformed(evt);
            }
        });
        jMAyuda.add(jMAcercaDe);

        jMenuBar1.add(jMAyuda);

        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()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLSaldo, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                        .addGap(172, 172, 172)
                        .addComponent(Logo))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jButton1)
                        .addGap(18, 18, 18)
                        .addComponent(jLClientes, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLClientes, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 135, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Logo, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLSaldo)
                        .addGap(22, 22, 22))))
        );

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

    private void jMUltimosMovActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMUltimosMovActionPerformed
        // TODO add your handling code here:
        new JFUltimosMovimientos(su,this).setVisible(true);
        //this.setVisible(false);
}//GEN-LAST:event_jMUltimosMovActionPerformed

    private void jMReintegroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMReintegroActionPerformed
        // TODO add your handling code here:
        new JFReintegro(su,this).setVisible(true);
}//GEN-LAST:event_jMReintegroActionPerformed

    private void jMMovDetalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMMovDetalleActionPerformed
        // TODO add your handling code here:
        new JFMovimientoDetallado(su,this).setVisible(true);
        //this.setVisible(false);
    }//GEN-LAST:event_jMMovDetalleActionPerformed

    private void jMDomiciliacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMDomiciliacionesActionPerformed
        // TODO add your handling code here:
        new JFDomiciliaciones(su, this).setVisible(true);
        //this.setVisible(false);
    }//GEN-LAST:event_jMDomiciliacionesActionPerformed

    private void jMVerCuentasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMVerCuentasActionPerformed
        // TODO add your handling code here:
        new JFVerCuentas(su,this).setVisible(true);
        //this.setVisible(false);
    }//GEN-LAST:event_jMVerCuentasActionPerformed

    private void jMLibretaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMLibretaActionPerformed
        // TODO add your handling code here:
         new JFLibreta(su,this).setVisible(true);
    }//GEN-LAST:event_jMLibretaActionPerformed

    private void jMCuentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCuentaActionPerformed
        // TODO add your handling code here:
        new JFCuenta(su,this).setVisible(true);
    }//GEN-LAST:event_jMCuentaActionPerformed

    private void jMPersonalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMPersonalActionPerformed
        // TODO add your handling code here:
        new JFPrestamoP(su,this).setVisible(true);
    }//GEN-LAST:event_jMPersonalActionPerformed

    private void jMHipotecarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMHipotecarioActionPerformed
        // TODO add your handling code here:
        new JFPrestamoH(su,this).setVisible(true);
    }//GEN-LAST:event_jMHipotecarioActionPerformed

    private void jMIngresoCentralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIngresoCentralActionPerformed
        // TODO add your handling code here:
        new JFIngresoCentral(su,this).setVisible(true);
    }//GEN-LAST:event_jMIngresoCentralActionPerformed

    private void jMArqueoFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMArqueoFinalActionPerformed
        // TODO add your handling code here:
        new JFArqueoFinal(su,this).setVisible(true);
    }//GEN-LAST:event_jMArqueoFinalActionPerformed

    private void jMIngresoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMIngresoActionPerformed
        // TODO add your handling code here:
        new JFIngreso(su,this).setVisible(true);
    }//GEN-LAST:event_jMIngresoActionPerformed

    private void jMInternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMInternaActionPerformed
        // TODO add your handling code here:
        new JFTransferenciaI(su,this).setVisible(true);
    }//GEN-LAST:event_jMInternaActionPerformed

    private void jMExternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMExternaActionPerformed
        // TODO add your handling code here:
        new JFTransferenciaE(su,this).setVisible(true);
    }//GEN-LAST:event_jMExternaActionPerformed

    private void jMCargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMCargoActionPerformed
        // TODO add your handling code here:
        new JFCargo(su,this).setVisible(true);
    }//GEN-LAST:event_jMCargoActionPerformed

    private void jMAbonoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAbonoActionPerformed
        // TODO add your handling code here:
        new JFAbono(su, this).setVisible(true);
    }//GEN-LAST:event_jMAbonoActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        String aux = String.valueOf(su.getMClientesF().size()+su.getMClientesJ().size());
        jLClientes.setText(aux);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jMAcercaDeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMAcercaDeActionPerformed
        // TODO add your handling code here:
        new JFAcercaDe(this).setVisible(true);
    }//GEN-LAST:event_jMAcercaDeActionPerformed

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
        // TODO add your handling code here:
        jLSaldo.setText(String.valueOf(su.getCajaActual().getSaldo()));
        jLClientes.setText(String.valueOf(su.getMClientesF().size()+su.getMClientesJ().size()));
    }//GEN-LAST:event_formWindowOpened

    private void jMPedirCentralActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMPedirCentralActionPerformed
        // TODO add your handling code here:
        new JFPedirCentral(su,this).setVisible(true);
}//GEN-LAST:event_jMPedirCentralActionPerformed

    private void jMVerPartesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMVerPartesActionPerformed
        // TODO add your handling code here:
        new JFVerPartes(su,this,false).setVisible(true);
    }//GEN-LAST:event_jMVerPartesActionPerformed

    private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
        // TODO add your handling code here:
    }//GEN-LAST:event_formWindowClosed

    private void jMVerTitularesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMVerTitularesActionPerformed
        // TODO add your handling code here:
        new JFVerTitulares(su,this).setVisible(true);
    }//GEN-LAST:event_jMVerTitularesActionPerformed

    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        // TODO add your handling code here:
        jLSaldo.setText(String.valueOf(su.getCajaActual().getSaldo()));
    }//GEN-LAST:event_formWindowActivated

    private void jMvisualizarEmpleadosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMvisualizarEmpleadosActionPerformed
        // TODO add your handling code here:
        new JFVerEmpleados(su,this).setVisible(true);
    }//GEN-LAST:event_jMvisualizarEmpleadosActionPerformed

    private void jMcrearEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMcrearEmpleadoActionPerformed
        // TODO add your handling code here:
        new JFContraseña(su,this,"crear").setVisible(true);
    }//GEN-LAST:event_jMcrearEmpleadoActionPerformed

    private void jMvisualizarArqueosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMvisualizarArqueosActionPerformed
        // TODO add your handling code here:
        new JFVerArqueos(su,this).setVisible(true);
    }//GEN-LAST:event_jMvisualizarArqueosActionPerformed

    private void jMmodificarEmpleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMmodificarEmpleadoActionPerformed
        // TODO add your handling code here:
        new JFContraseña(su,this,"modificar").setVisible(true);
    }//GEN-LAST:event_jMmodificarEmpleadoActionPerformed

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

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Logo;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLClientes;
    private javax.swing.JLabel jLSaldo;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem jMAbono;
    private javax.swing.JMenuItem jMAcercaDe;
    private javax.swing.JMenu jMAltaNueva;
    private javax.swing.JMenuItem jMArqueoFinal;
    private javax.swing.JMenu jMAyuda;
    private javax.swing.JMenu jMBasicas;
    private javax.swing.JMenuItem jMCargo;
    private javax.swing.JMenu jMConsultas;
    private javax.swing.JMenuItem jMCuenta;
    private javax.swing.JMenuItem jMDomiciliaciones;
    private javax.swing.JMenu jMEmpleados;
    private javax.swing.JMenuItem jMExterna;
    private javax.swing.JMenu jMGestion;
    private javax.swing.JMenuItem jMHipotecario;
    private javax.swing.JMenuItem jMIngreso;
    private javax.swing.JMenuItem jMIngresoCentral;
    private javax.swing.JMenuItem jMInterna;
    private javax.swing.JMenuItem jMLibreta;
    private javax.swing.JMenuItem jMMovDetalle;
    private javax.swing.JMenu jMOperaciones;
    private javax.swing.JMenuItem jMPedirCentral;
    private javax.swing.JMenuItem jMPersonal;
    private javax.swing.JMenuItem jMReintegro;
    private javax.swing.JMenu jMRemesas;
    private javax.swing.JMenu jMTransferencia;
    private javax.swing.JMenuItem jMUltimosMov;
    private javax.swing.JMenuItem jMVerCuentas;
    private javax.swing.JMenuItem jMVerPartes;
    private javax.swing.JMenuItem jMVerTitulares;
    private javax.swing.JMenuItem jMcrearEmpleado;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMmodificarEmpleado;
    private javax.swing.JMenuItem jMvisualizarArqueos;
    private javax.swing.JMenuItem jMvisualizarEmpleados;
    // End of variables declaration//GEN-END:variables

}
