Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290247 | na | Philip Race | P4 | Closed | Not an Issue |
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.
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.
- backported by
-
JDK-8290247 The set of available printers is not updated without application restart
-
- Closed
-