Customizing the user interface

JPedal has the option to customize the gui without any need for programming knowledge.

The user may have interface options activated and deactivated in the properties file just by setting a flag to true for active, or false for inactive. If you wish to you may do this hand by editing the properties file. Alternatively you can use our new user interface to control the viewer gui.

 

Using the Preferences Dialog

First open the simple viewer and click on the Edit menu option then Preferences.

PDF viewer

Once the Preferences window is open, select the Menu option and you should see something similar to this: (may vary due to different operating systems)

PDF viewer

Each tab in this window handles a different section of the viewer as shown below.

PDF viewer

The check boxes represent items within these sections. A check box with a plus next to it may be expaneded as it represents a menu with multiple children. When deselecting an item it will no longer be displayed, but the component it was originally on remains (as above).

To remove these you need to click on the button found beneath the check box tree for each section. (The button in the example above reads “Click here to hide Menu Bar”.) This will remove an entire section regardless of the options selected within the tree. If you wish you may remove all the elements from the gui, leaving just a panel.

noGUI resized 600

JPedal Viewer has a constructor which allows you to pass in your own component to display your pdfs on. Combine this with the ability to remove our user interface and you can add pdf viewing with ease. If you wish to use our user interface just keep them active and have a full viewer in your application with minimal code alterations.