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

Printing: can't set printer through API

    XMLWordPrintable

    Details

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

      Description

      When I set printer for printer job with printerJob.setPrinter() it still uses a default printer to print. However in printer job settings will be printer that was passed as a parameter.
      To reproduce:
      Run attached project
      From combobox select printer different from your default one. Do it two or more times. This is important because first time it creates job with a static constructor and then just set different printers to it
      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:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: