changeset 5080:fb047b05f1af

7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name Reviewed-by: bae, jgodinez
author prr
date Fri, 15 Jun 2012 10:20:39 -0700
parents 9b727b561f58
children 14f6a89d8bf2
files src/share/classes/sun/print/ServiceDialog.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/print/ServiceDialog.java	Fri Jun 15 18:48:41 2012 +0400
+++ b/src/share/classes/sun/print/ServiceDialog.java	Fri Jun 15 10:20:39 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);