|

J2PrinterWorks
J2PrinterWorks is a JavaTM 2 framework for printing Swing component-based documents.
For example, to print a fully-paginated JTextPane the following code is all that is required:
import com.wildcrest.j2printerworks.*;
J2Printer printer = new J2Printer();
J2TextPrinter textPrinter = new J2TextPrinter(yourJTextPane);
printer.print(textPrinter);
J2PrinterWorks classes
J2PrinterWorks consists of the following primary classes:
| J2Printer |
manages the Java PrinterJob class, prints one or more Pageables (the Java class defining a set of printable pages) |
| J2Printer14 |
J2Printer subclass supporting JDK 1.4+ printing features (printer discovery, cross-platform dialogs, etc.) |
| J2PrinterWebStart |
J2Printer subclass supporting printing from Java Web Start applications using the JNLP APIs |
| Flowable |
interface for printing components that can start and/or end in the middle of pages
|
| J2TextPrinter |
prints any JTextPane, JEditorPane, or JTextArea as a Pageable or a Flowable |
| J2TablePrinter |
prints any JTable as a Pageable or a Flowable |
| J2TreePrinter |
prints any JTree as a Pageable or a Flowable |
| J2ListPrinter |
prints any JList as a Pageable or a Flowable |
| J2PanelPrinter |
prints any JPanel or simple Components and Images as a Pageable or a Flowable |
| J2ComponentPrinter |
prints any (Java or third-party) Component as a Pageable or a Flowable |
| J2FlowPrinter |
prints any series of Flowables back-to-back as a Pageable or a Flowable
|
J2PrinterWorks Product Family
J2PrinterWorks is available in three product configurations:
J2PrinterWorks Complete - the full product
J2PrinterWorks Text Edition - a special subset version tailored for users of JTextPane, JEditorPane, or JTextArea.
J2PrinterWorks Table Edition - a special subset version tailored for users of JTable.
The following table lists the classes included with each member of the J2PrinterWorks product family:
| Class: |
J2PrinterWorks
Complete |
J2PrinterWorks
Text Edition |
J2PrinterWorks
Table Edition |
J2Printer, J2Printer14, J2PrinterWebStart
|
Y |
Y |
Y |
| J2TextPrinter |
Y |
Y |
eval |
| J2TablePrinter |
Y |
eval |
Y |
| J2TreePrinter |
Y |
eval |
eval |
| J2ListPrinter |
Y |
eval |
eval |
| J2PanelPrinter |
Y |
Y |
Y |
| J2ComponentPrinter |
Y |
eval |
eval |
| J2FlowPrinter |
Y |
Y |
Y |
| HorizontalLine, VerticalGap, PageEject |
Y |
Y |
Y |
(The designation "eval" in the table above means the class is available, but its use will cause documents to print with headers that say "EVALUATION USE ONLY" with a "Thank You" page at the end, like the Free Trial Version.)
|