7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up

Reviewed-by: dcherepanov, art
This commit is contained in:
Andrei Dmitriev 2011-05-13 19:49:21 +04:00
parent b14549c78a
commit 430ceddfa3

View File

@ -1190,10 +1190,7 @@ public abstract class Toolkit {
* security manager's <code>checkPermission</code> method with a <code>
* RuntimePermission("queuePrintJob")</code> permission.
*
* @param frame the parent of the print dialog. May be null if and only
* if jobAttributes is not null and jobAttributes.getDialog()
* returns JobAttributes.DialogType.NONE or
* JobAttributes.DialogType.COMMON.
* @param frame the parent of the print dialog. May not be null.
* @param jobtitle the title of the PrintJob. A null title is equivalent
* to "".
* @param jobAttributes a set of job attributes which will control the