7158366: [macosx] Print-to-file dialog doesn't have an entry field for a name

Reviewed-by: bae, jgodinez
This commit is contained in:
Phil Race 2012-06-14 16:34:43 -07:00
parent 9d94d32594
commit 0527d01622

View File

@ -429,6 +429,7 @@ public class ServiceDialog extends JDialog implements ActionListener {
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);