Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7179006

[macosx] Print-to-file doesn't work: printing to the default printer instead

    XMLWordPrintable

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b18
    • CPU:
      x86
    • OS:
      os_x

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                prr Philip Race
                Reporter:
                yan Yuri Nesterenko
                Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: