
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.
- Generic is appropriate for Swing GUI Components like panels (JPanel)
and windows (JFrame, JDialog, ...).
- Table is appropriate for Swing Tables (JTable). (This is the version pictured
to the left.)
- Text is appropriate for Swing Text Components (JTextArea, JTextPane, ...).
- Tree is appropriate for Swing Trees (JTree).
- 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.
|
|