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

Printing: can't set printer through API

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported: