Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 7, 8, 9, 10, 11, 11.0.6.0.60-oracle, 12, 13, 14, 15
-
Fix Version/s: 16
-
Component/s: client-libs
-
Subcomponent:
-
Resolved In Build:b18
-
CPU:x86
-
OS:os_x
Description
MacOS X 10.7.4 macmini4,1
Verifying 7158366 I've found that a print dialog now does provide filename but doesn't use it. Instead of a file, the printout goes to a default printer.
Use for instance closed/java/awt/print/Dialog/PrintDlgApp.java -- it is still broken as a jtreg test (main class should be public) but you may compile it directly and call java on a class. In a popped PrintDialog you would see a default printer name and a prominent checkbox "Print To File", checked.
Push "Print" button. You will be presented with a file dialog with a proper filename prompt. Type in a name or agree on out.prn. Push "Save" button.
Now you will have printout sent to the default printer. No file created.
Note that this bug is reproducible with Apple JDK6 as well.
Verifying 7158366 I've found that a print dialog now does provide filename but doesn't use it. Instead of a file, the printout goes to a default printer.
Use for instance closed/java/awt/print/Dialog/PrintDlgApp.java -- it is still broken as a jtreg test (main class should be public) but you may compile it directly and call java on a class. In a popped PrintDialog you would see a default printer name and a prominent checkbox "Print To File", checked.
Push "Print" button. You will be presented with a file dialog with a proper filename prompt. Type in a name or agree on out.prn. Push "Save" button.
Now you will have printout sent to the default printer. No file created.
Note that this bug is reproducible with Apple JDK6 as well.
Attachments
Issue Links
- duplicates
-
JDK-8041945 [macosx] Print to file prints on printer
-
- Closed
-
-
JDK-8197946 [macos] print to file doesn't work
-
- Closed
-