java命名空间javax.swing.text类jtextcomponent的类成员方法:
print定义及介绍
本文导语:
print
public boolean print(messageformat headerformat,
messageformat footerformat)
throws printerexception
一个便捷打印方法,它显示打印对话框,然后在交互 模式下打印此 jtextcomponent,打印指定的标题和脚注文本。注:打...
public boolean print(messageformat headerformat,
messageformat footerformat)
throws printerexception
- 一个便捷打印方法,它显示打印对话框,然后在交互 模式下打印此
jtextcomponent,打印指定的标题和脚注文本。注:打印完成前此方法将阻塞。
注:在 headless 模式下,不显示对话框。
此方法调用功能完备的 print 方法执行打印。
- 参数:
headerformat - 在 messageformat 中用作标题的文本,或者为 null,表示没有标题footerformat - 在 messageformat 中用作脚注的文本,或者为 null,表示没有脚注
- 返回:
- 除非用户取消了打印,否则返回
true
- 抛出:
printerexception - 如果打印系统中发生导致作业中断的错误
securityexception - 如果不允许此线程初始化打印作业请求- 从以下版本开始:
- 1.6
- 另请参见:
print(messageformat, messageformat, boolean, printservice, printrequestattributeset, boolean),
messageformat