private void borrowButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_borrowButtonActionPerformed
        ExecutorService borrowExecutor = Executors.newCachedThreadPool();
        LibraryManager.BorrowTask bt = lfq.new BorrowTask();
        bt.getBorrowTitle(titleField.getText().trim());

        borrowExecutor.execute(bt);
        
        borrowExecutor.shutdown();
   
        while (!borrowExecutor.isTerminated()) {
            
        }
        
        JOptionPane.showMessageDialog(null, titleField.getText() + 
                " has been borrowed", "SUCCESS", JOptionPane.INFORMATION_MESSAGE);
    }//GEN-LAST:event_borrowButtonActionPerformed