Soft Frame Works

JPDF Setup Content Dialog

The Setup Content Dialog is one of the Setup Dialogs provided by the JPDF.  This dialog contains a Tabbed Pane control with three Tab Pages as pictured and described below.

  • The Page Setup tab page allows you to specify a number of basic page setup attributes -- Paper Size and Source, Page Orientation, and Page Margins. This tab page contains a button that displays a Select Printer Dialog which allows you to select the printer.
  • The Content tab page allows you to specify a number of setup attributes which control the material to be printed. There are five different versons of this tab page, each appropriate for a different type of material.
    1. Generic is appropriate for Swing GUI Components like panels (JPanel) and windows (JFrame, JDialog, ...).
    2. Table is appropriate for Swing Tables (JTable). (This is the version pictured to the left.)
    3. Text is appropriate for Swing Text Components (JTextArea, JTextPane, ...).
    4. Tree is appropriate for Swing Trees (JTree).
    5. Font is appropriate for text which is independent of a Swing Component.
    All five versions of this tab page contain controls that allow the Page Offsets to be specified. These offsets are used to offset the material to be printed from the page margins. All five also allow you to specify whether a Page Frame (a rectangle just inside the page margins) should be printed. The four versions associated with various types of Swing Components allow the material to be scaled using a Scaling Factor. Additional controls, specific to the type of material to be printed, are provided on each version.
  • The Notes tab page allows you to specify the contents of the Page Header/Footer. The Header/Footer contents are specified using three Text Fields for the text to appear in the left/center/right of the Header/Footer.

    The toolbar at the top of the Notes tab page allows you to insert special markers into the head/foot notes. These markers are replaced by actual values when the material is printed. For example, if you place the date/time markers into the head/foot notes, then the values that are printed will reflect the time at which printing occurs.

    NOTE: The JPDF provides a number of alternative methods for specifying the contents of the Page Headers/Footers. Using three strings is just one of these alternatives. Others include using a Text Document or using HTML.

© Copyright 2003-2017 Soft Frame Works. All rights reserved. Privacy Policy   Site Map