Uses of Class
java.awt.print.PrinterException
Package
Description
Provides classes and interfaces for a general printing API.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of PrinterException in java.awt.print
Modifier and TypeClassDescriptionclass
ThePrinterAbortException
class is a subclass ofPrinterException
and is used to indicate that a user or application has terminated the print job while it was in the process of printing.class
ThePrinterIOException
class is a subclass ofPrinterException
and is used to indicate that an IO error of some sort has occurred while printing.Modifier and TypeMethodDescriptionint
Printable.print
(Graphics graphics, PageFormat pageFormat, int pageIndex) Prints the page at the specified index into the specifiedGraphics
context in the specified format.abstract void
PrinterJob.print()
Prints a set of pages.void
PrinterJob.print
(PrintRequestAttributeSet attributes) Prints a set of pages using the settings in the attribute set.void
PrinterJob.setPrintService
(PrintService service) Associate this PrinterJob with a new PrintService. -
Uses of PrinterException in javax.swing
Modifier and TypeMethodDescriptionboolean
JTable.print()
A convenience method that displays a printing dialog, and then prints thisJTable
in modePrintMode.FIT_WIDTH
, with no header or footer text.boolean
JTable.print
(JTable.PrintMode printMode) A convenience method that displays a printing dialog, and then prints thisJTable
in the given printing mode, with no header or footer text.boolean
JTable.print
(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat) A convenience method that displays a printing dialog, and then prints thisJTable
in the given printing mode, with the specified header and footer text.boolean
JTable.print
(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive) Prints this table, as specified by the fully featuredprint
method, with the default printer specified as the print service.boolean
JTable.print
(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service) Prints thisJTable
. -
Uses of PrinterException in javax.swing.text
Modifier and TypeMethodDescriptionboolean
JTextComponent.print()
A convenience print method that displays a print dialog, and then prints thisJTextComponent
in interactive mode with no header or footer text.boolean
JTextComponent.print
(MessageFormat headerFormat, MessageFormat footerFormat) A convenience print method that displays a print dialog, and then prints thisJTextComponent
in interactive mode with the specified header and footer text.boolean
JTextComponent.print
(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive) Prints the content of thisJTextComponent
.