7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up.
authordav
Fri, 13 May 2011 19:49:21 +0400
changeset 9661 d837c8c8ac46
parent 9660 73dd0c7a8658
child 9662 68f9d98224e1
7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up. Reviewed-by: dcherepanov, art
jdk/src/share/classes/java/awt/Toolkit.java
--- a/jdk/src/share/classes/java/awt/Toolkit.java	Wed May 11 17:51:46 2011 +0400
+++ b/jdk/src/share/classes/java/awt/Toolkit.java	Fri May 13 19:49:21 2011 +0400
@@ -1190,10 +1190,7 @@
      * 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