Class PDFPagePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PDFPagePanel extends JPanel
This is a simple JPanel that can be used to display a PDF page.
Version:
$Revision: 1.4 $
Author:
Ben Litchfield
See Also:
  • Constructor Details

    • PDFPagePanel

      public PDFPagePanel() throws IOException
      Constructor.
      Throws:
      IOException - If there is an error creating the Page drawing objects.
  • Method Details

    • setPage

      public void setPage(PDPage pdfPage)
      This will set the page that should be displayed in this panel.
      Parameters:
      pdfPage - The page to draw.
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent