7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name
Reviewed-by: bae, jgodinez
--- 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);