private void btnImprimirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnImprimirActionPerformed
        // Codigo de imprimir
        int a = panelGeneral.getSelectedIndex();
        Imprimir imp;
        try {
            if (a == 0) {
                imp = new Imprimir(this);
            } else if (a == 1) {
                tabla.print();
            }
        } catch (PrinterException ex) {
            JOptionPane.showMessageDialog(null, "Error al imprimir, " + ex.getMessage(),
                    "ERROR", JOptionPane.ERROR_MESSAGE);
        } finally {
            imp = null;
        }
    }//GEN-LAST:event_btnImprimirActionPerformed