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

The set of available printers is not updated without application restart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx19
    • jfx19
    • javafx

        Although printers may be added or removed whilst an application is running,
        these changes are not reflected in the set of printers returned by
        javafx.print.Printer.getAllPrinters()

        https://openjfx.io/javadoc/17/javafx.graphics/javafx/print/Printer.html#getAllPrinters()

        Since the current implementation sits on Java2D printing, and that listens for Windows messages (in native code) informing it of printer changes, then Java 2D's list is updated, then the updated list is available. However 2D does not provide a public notification of the change, so OpenJFX will need to re-query and compare.

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: