private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        // Cancel
        
        boolean resThrown=false;
                
        for(Reservation r:reservations){
            if(r.getMember().getFirstName().trim().equals(jTextField32.getText().trim().split(" ")[0].trim()) &&
                    r.getMember().getLastName().trim().equals(jTextField32.getText().trim().split(" ")[1].trim()) &&
                        r.getPublication().getTitle().trim().equals(jTextField33.getText().trim())&&
                            (r.getStatus().trim().equals("hold") || r.getStatus().trim().equals("pending"))){                
                r.getMember().cancelReservation(r);
                if(r.getCopy()!=null)
                    UpdateCopies("", r.getCopy());
                // Want to maintain history then don't assign as below. Just assign 'true'.
                resThrown=true;   // throwing away cancelled reservation
            }
        }
        
        if(resThrown){
            jLabel42.setText("Reservation cancelled!");
        }
        else{
            jLabel42.setText("Reservation was not made!");
        }
    }//GEN-LAST:event_jButton8ActionPerformed