-
Bug
-
Resolution: Fixed
-
P2
-
11
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205266 | 11.0.1 | Philip Race | P2 | Resolved | Fixed | team |
The Page Setup and Print Dialogs used by Java 2D printing,
i.e. java.awt.print.PrinterJob, are created by the printing
implementation. Thus the application cannot specify an owner
window. The implementation tries to find a suitable window to
act as the owner, so that the dialog can be kept on top of that
window rather than hidden. But if the application could specify this directly it may make for a better experience.
And what if the window is not an AWT window, but say, a JavaFX window ? A way to specify a non-AWT owner might be useful.
Also the application might prefer that it be on top of all windows,
ie. using the java.awt.Window.setAlwaysOnTop(true) functionality.
This might be needed for the case where the non-AWT window owner support is not possible.
With such API we can remove JavaFX's dependency on JDK internal access to this dialog ownership behaviour as tracked by
https://bugs.openjdk.java.net/browse/JDK-8195808
One way to do this is to add a new DialogOwner printing attribute.
The application can include this in the attribute set parameter to the dialog methods.
i.e. java.awt.print.PrinterJob, are created by the printing
implementation. Thus the application cannot specify an owner
window. The implementation tries to find a suitable window to
act as the owner, so that the dialog can be kept on top of that
window rather than hidden. But if the application could specify this directly it may make for a better experience.
And what if the window is not an AWT window, but say, a JavaFX window ? A way to specify a non-AWT owner might be useful.
Also the application might prefer that it be on top of all windows,
ie. using the java.awt.Window.setAlwaysOnTop(true) functionality.
This might be needed for the case where the non-AWT window owner support is not possible.
With such API we can remove JavaFX's dependency on JDK internal access to this dialog ownership behaviour as tracked by
https://bugs.openjdk.java.net/browse/JDK-8195808
One way to do this is to add a new DialogOwner printing attribute.
The application can include this in the attribute set parameter to the dialog methods.
- backported by
-
JDK-8205266 Define API to support specifying ownership of print dialogs
-
- Resolved
-
- blocks
-
JDK-8195808 Eliminate dependency on sun.print in javafx.graphics
-
- Resolved
-
- csr for
-
JDK-8203834 Define API to support specifying ownership of print dialogs.
-
- Closed
-