Add your own buttons and menu items
This tutorial explains how to add buttons, menu items and other gui components to the existing Java PDF viewer.
How to access the various interface panels
JPedal has method designed to give you access to the interface panels so that you may add your own buttons and menu items.

The user may just add to the exsisting menu items at the begining of the panel by adding items before calling the simpleviewer method setupViewer() or to the end of the panel by calling after the setupViewer() method. You may also completely replace the buttons provided by using the preferences options then add your own.
The following methods are used to access the different panels
Access MenuBar with SwingGui.getMenuBar() and returns a JMenuBar
Access Buttons with SwingGui.getTopButtonBar() and returns a JToolBar
Access Display Options with SwingGui.getDisplaySettingsBar() and returns a JToolBar
Access Side Tab Bar with SwingGui.getNavigationBar() and returns a JTabbedPane
Access Navigation Bar with SwingGui.getNavigationBar() and returns a JToolBar
JPedal SimpleViewer has a constructor which allows you to pass in your own component to display your PDF files. Combine this with the ability to remove our user interface items and add your own, you can have PDF viewing in your software with ease.
Return to main PDF support section
Click here for the main PDF support area with lots of java examples, PDF tutorials and useful information to get the most out of the JPedal PDF library




