Im trying to open a pdf document, using PDFBox, but the pdf does not open. When I click the button the PDF should be displayed on the screen.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
         try {
             PDDocument document = null;
             document = PDDocument.load(new File("C:/Users/Warcross.pdf"));
             document.close();
         } catch (IOException ex) {
             Logger.getLogger(InfoDelLibro.class.getName()).log(Level.SEVERE, null, ex);
         }
    }