| 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 | Method and Description |
|---|---|
Printable |
Book.getPrintable(int pageIndex)
Returns the
Printable instance responsible for rendering the page specified by
pageIndex.
|
Printable |
Pageable.getPrintable(int pageIndex)
Returns the
Printable instance responsible for rendering the page specified by
pageIndex.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Book.append(Printable
Appends a single page to the end of this
Book.
|
void |
Book.append(Printable
Appends
numPages pages to the end of this
Book.
|
void |
Book.setPage(int pageIndex, Printable
Sets the
PageFormat and the
Painter for a specified page number.
|
abstract void |
PrinterJob.setPrintable(Printable
Calls
painter to render the pages.
|
abstract void |
PrinterJob.setPrintable(Printable
Calls
painter to render the pages in the specified
format.
|
| Modifier and Type | Method and Description |
|---|---|
Printable |
JTable.getPrintable(JTable
Return a
Printable for use in printing this JTable.
|
| Modifier and Type | Method and Description |
|---|---|
Printable |
JTextComponent.getPrintable(MessageFormat
Returns a
Printable to use for printing the content of this
JTextComponent.
|