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

Printing: PrinterJob.createPrinterJob() creates jobs with wrong printer

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:

      Description

      When I create printer job with PrinterJob.createPrinterJob() it still uses a default printer to print. However printer job settings will have the printer that was passed as a parameter.
      To reproduce:
      Run attached project
      From combobox select printer different from your default one. Do it once. This is important because second time it will not create job, but simply will set another printer to existing one
      Click "Print". It will print it's printer from job settings to the console.
      Check which it used for real. This will be default printer.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prr Philip Race
                Reporter:
                asakharu Aleksandr Sakharuk (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: