private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jToggleButton1ActionPerformed
        // TODO add your handling code here:
        if(!jTextField1.getText().equals("")){
        try {
        String cod_pelicula = jTextField1.getText();
        String titulo = jTextField2.getText();
        String genero = jTextField3.getText();
        String formato = jTextField4.getText();
        String director = jTextField5.getText();
        String stock = jTextField6.getText();
        Integer stk = Integer.parseInt(stock);
        String monto = jTextField7.getText();
        Integer mnt = Integer.parseInt(monto);
        
        Peliculas pelicula = new Peliculas(cod_pelicula, genero, titulo, formato, director, stk, mnt);

        GestorPeliculas gp = new GestorPeliculas();
        gp.agregarCuenta(pelicula);
        dispose();
        
        } catch (DateAccessException ex) {
            System.out.println(ex);
        }
        }else
                if(jTextField1.getText().equals("")||jTextField2.getText().equals("")||jTextField3.getText().equals("")||jTextField4.getText().equals("")||
                        jTextField5.getText().equals("")||jTextField6.getText().equals("")||jTextField7.getText().equals("")){
                JOptionPane.showMessageDialog(null,"Campo/s Vacio/s");
                }       
    }//GEN-LAST:event_jToggleButton1ActionPerformed