private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        List<Usuario> us = new Conectar().ConexionUs();
        Usuario u = new Usuario();
        String s = null;
        try {
             s = new UseUser().GetUser();
        } catch (Exception ex) {
            Logger.getLogger(Ventas.class.getName()).log(Level.SEVERE, null, ex);
        }
        for(Usuario u1 : us){
            StringBuffer st = new StringBuffer(u1.getName());
            st.setLength(30);
            u1.setName(st.toString());
            if(u1.getName().equalsIgnoreCase(s)){
                u = u1;
            }
        }
        dispose();
        if(u.isAdministrador()){
            new MenuMain().Call();
        }else{
            new MenuEmpleado().Call();
        }
    }//GEN-LAST:event_jButton1ActionPerformed