changeset 12995:0a91fe123fa2

7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name Reviewed-by: bae, jgodinez
author prr
date Thu, 14 Jun 2012 16:34:43 -0700
parents a758ccd05133
children 5ce6db38ea84
files jdk/src/share/classes/sun/print/ServiceDialog.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/sun/print/ServiceDialog.java	Thu Jun 14 11:14:44 2012 +0400
+++ b/jdk/src/share/classes/sun/print/ServiceDialog.java	Thu Jun 14 16:34:43 2012 -0700
@@ -429,6 +429,7 @@
         ValidatingFileChooser jfc = new ValidatingFileChooser();
         jfc.setApproveButtonText(getMsg("button.ok"));
         jfc.setDialogTitle(getMsg("dialog.printtofile"));
+        jfc.setDialogType(JFileChooser.SAVE_DIALOG);
         jfc.setSelectedFile(fileDest);
 
         int returnVal = jfc.showDialog(this, null);