7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name
authorprr
Thu, 14 Jun 2012 16:34:43 -0700 (2012-06-14)
changeset 12995 0a91fe123fa2
parent 12994 a758ccd05133
child 12996 5ce6db38ea84
7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name Reviewed-by: bae, jgodinez
jdk/src/share/classes/sun/print/ServiceDialog.java
--- 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);