private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
       
         DefaultTableModel dft = (DefaultTableModel) jTable3.getModel();
    dft.setRowCount(0);

    if (jRadioButton2.isSelected()) {

        try {

            ResultSet rs = DB.myConnection().createStatement().executeQuery("select * from book where BookID like '" + jTextField1.getText() + "%' order by BookID ASC");
            while (rs.next()) {
                Vector v1 = new Vector();
                v1.add(rs.getString("BookID"));
                v1.add(rs.getString("BookName"));
                dft.addRow(v1);
            }

        } catch (Exception e) {
        }
    } else if (jRadioButton1.isSelected()) {

        try {

            ResultSet rs = DB.myConnection().createStatement().executeQuery("select * from book where BookName like '" + jTextField1.getText() + "%'  order by BookName ASC");
            while (rs.next()) {
                Vector v2 = new Vector();
                v2.add(rs.getString("BookID"));
                v2.add(rs.getString("BookName"));
                dft.addRow(v2);
            }

        } catch (Exception e) {
        }
    }

    }//GEN-LAST:event_jButton1ActionPerformed