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

Printing: can't set printer through API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • javafx

    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

              prr Philip Race
              asakharu Aleksandr Sakharuk (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: