软件包 | 描述 |
---|---|
java.awt.print |
提供通用打印接口的类和接口。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.text |
提供类和接口处理编辑和不可编辑的文本组件。
|
Modifier and Type | Class and Description |
---|---|
class |
PrinterAbortException
这是
PrinterException
PrinterAbortException 类子类,用于表示一个用户或应用程序已经终止打印作业,它是印刷过程中。
|
class |
PrinterIOException
这是
PrinterException
PrinterIOException 类子类,用于表示打印时出现某种IO错误。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
PrinterJob.print()
打印一组页。
|
int |
Printable.print(Graphics graphics, PageFormat pageFormat, int pageIndex)
打印页面中的指定索引处到指定的
Graphics 上下文中指定的格式。
|
void |
PrinterJob.print(PrintRequestAttributeSet attributes)
在属性集的设置中打印一组页。
|
void |
PrinterJob.setPrintService(PrintService service)
这一新的打字printerjob副。
|
Modifier and Type | Method and Description |
---|---|
boolean |
JTable.print()
一个方便的方法,显示打印对话框,然后打印这
JTable 模式
PrintMode.FIT_WIDTH ,没有页眉或页脚文本。
|
boolean |
JTable.print(JTable.PrintMode printMode)
一个方便的方法,显示打印对话框,然后打印这
JTable 在给定的打印模式,没有页眉或页脚文本。
|
boolean |
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat)
一个方便的方法,显示打印对话框,然后打印这
JTable 在给定的打印模式,与指定页眉和页脚文本。
|
boolean |
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive)
打印此表,以全面的
print 方法指定默认打印机,与指定的打印服务。
|
boolean |
JTable.print(JTable.PrintMode printMode, MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintRequestAttributeSet attr, boolean interactive, PrintService service)
这
JTable 版画。
|
Modifier and Type | Method and Description |
---|---|
boolean |
JTextComponent.print()
一个方便的打印方法,显示打印对话框,然后打印这
JTextComponent 空互动模式没有页眉或页脚文本。
|
boolean |
JTextComponent.print(MessageFormat headerFormat, MessageFormat footerFormat)
一个方便的打印方法,显示打印对话框,然后打印这
JTextComponent 空互动模式与指定页眉和页脚文本。
|
boolean |
JTextComponent.print(MessageFormat headerFormat, MessageFormat footerFormat, boolean showPrintDialog, PrintService service, PrintRequestAttributeSet attributes, boolean interactive)
这
JTextComponent 打印内容。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.