private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        DefaultTableModel dft2 = (DefaultTableModel) jTable5.getModel();
        try {

            DB.myConnection().createStatement().executeUpdate("delete from printpublisherbooklist ");
            for (int i = 0; i < dft2.getRowCount(); i++) {
                DB.myConnection().createStatement().executeUpdate("insert into printpublisherbooklist values('" + dft2.getValueAt(i, 0).toString() + "','" + dft2.getValueAt(i, 1).toString() + "')");
            }
            ResultSet rs = DB.myConnection().createStatement().executeQuery("select * from printpublisherbooklist");
            int check = 1;
            while (rs.next()) {
                check = 2;
                break;
            }
            if (check == 2) {
                //Reports.AllbookReport("C:/lib rep/PrintPublisherBookList.jrxml");
            } else {
                JOptionPane.showMessageDialog(null, "The Book List is Empty, Nothing to Print");
            }

        } catch (Exception e) {
            System.out.println("Exception @ Search_by_publisher line 239");
        }

    }//GEN-LAST:event_jButton1ActionPerformed