| Package | Description |
|---|---|
| java.awt.print |
Provides classes and interfaces for a general printing API.
|
| javax.swing |
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PrinterAbortException
The
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.
|
class |
PrinterIOException
The
PrinterIOException class is a subclass of
PrinterException and is used to indicate that an IO error of some sort has occurred while printing.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
PrinterJob.print()
Prints a set of pages.
|
int |
Printable.print(Graphics
Prints the page at the specified index into the specified
Graphics context in the specified format.
|
void |
PrinterJob.print(PrintRequestAttributeSet
Prints a set of pages using the settings in the attribute set.
|
void |
PrinterJob.setPrintService(PrintService
Associate this PrinterJob with a new PrintService.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JTable.print()
A convenience method that displays a printing dialog, and then prints this
JTable in mode
PrintMode.FIT_WIDTH, with no header or footer text.
|
boolean |
JTable.print(JTable
A convenience method that displays a printing dialog, and then prints this
JTable in the given printing mode, with no header or footer text.
|
boolean |
JTable.print(JTable
A convenience method that displays a printing dialog, and then prints this
JTable in the given printing mode, with the specified header and footer text.
|
boolean |
JTable.print(JTable
Prints this table, as specified by the fully featured
print method, with the default printer specified as the print service.
|
boolean |
JTable.print(JTable
Prints this
JTable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
JTextComponent.print()
A convenience print method that displays a print dialog, and then prints this
JTextComponent in
interactive mode with no header or footer text.
|
boolean |
JTextComponent.print(MessageFormat
A convenience print method that displays a print dialog, and then prints this
JTextComponent in
interactive mode with the specified header and footer text.
|
boolean |
JTextComponent.print(MessageFormat
Prints the content of this
JTextComponent.
|