Mercurial > hg > openjdk > jdk7 > jdk
changeset 4198:84ad07aece8c
7042537: When press the 'Print' button,the NullPointerException is thrown and printdialog is not pop up.
Reviewed-by: dcherepanov, art
author | dav |
---|---|
date | Fri, 13 May 2011 19:49:21 +0400 |
parents | 4a5bb1f16cb4 |
children | 368e1da134aa |
files | src/share/classes/java/awt/Toolkit.java |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/java/awt/Toolkit.java Wed May 11 17:51:46 2011 +0400 +++ b/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