Sample Dialogs
The JPDF provides a variety of dialogs which can be incorporated out-of-the box (i.e. without modification) into
your application.
Three types of dialogs are provided:
-
Setup Dialogs allow the user to establish the settings that will be used for printing (but not to
actually print).
-
Preview Dialogs allow the user to view an on-screen representation of how the material to be
printed will appear on paper.
-
Print Dialogs allow the user to print some material by submitting a Print Job to the printer.
Many of these dialogs can be programmatically configured in ways which are not fully presented in this
Demo. This allows you to configure them to meet the specific requirements of your application with
minimmal effort. Additionally, you can create your own custom print dialogs if the provided ones
do not meet your requirements. An efficient component-assembly framework (which leverages
many existing components) can be utilized to create new print dialogs.
Displaying the Dialogs
To display one of the dialogs available in this Demo, click one of the links displayed to the left. This
will display some information about the dialog (including a dialog image).
When you are ready, press the Display Dialog button
(
) to display the dialog.
Some of the dialogs contain a preview of the material to be printed and/or allow
you to print this material. For these dialogs, the material to be previewed/printed will be the selected
component in the Sample: Swing tab.