Provides classes and interfaces for a general printing API.
Pageable implementation represents a set of
pages to be printed.
Printable interface is implemented
print methods of the current
page painter, which is called by the printing
system to render a page.
PrinterGraphics interface is implemented by
Graphics objects that are passed to
Printable objects to render a page.
Book class provides a representation of a document in
which pages may have different page formats and page painters.
PageFormat class describes the size and
orientation of a page to be printed.
Paper class describes the physical characteristics of
a piece of paper.
PrinterJob class is the principal class that controls
PrinterAbortException class is a subclass of
PrinterException and is used to indicate that a user
or application has terminated the print job while it was in
the process of printing.
PrinterException class and its subclasses are used
to indicate that an exceptional condition has occurred in the print
PrinterIOException class is a subclass of
PrinterException and is used to indicate that an IO error
of some sort has occurred while printing.
Package java.awt.print Description
Provides classes and interfaces for a general printing API. The
API includes such features as:
- the ability to specify document types
- mechanisms for control of page setup and page formats
- the ability to manage job control dialogs
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.