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

The set of available printers is not updated without application restart

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: