United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6491273 Print and Page dialogs are shown in the taskbar, on Windows
JDK-6491273 : Print and Page dialogs are shown in the taskbar, on Windows

Details
Type:
Bug
Submit Date:
2006-11-08
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
windows
Sub-Component:
2d
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Relates:
Relates:
Relates:

Sub Tasks

Description
In the current 6.0 build (rc) all the common Java dialogs, except file, print and page dialogs, follow the rule: the dialog is shown in the windows taskbar only if it is parentless. The situation with file, print and page dialogs is a bit different.

File dialogs are shown in the taskbar regardless of their parents. This is what AWT bug 6488834 is about. After the fix for 6488834 all the file dialogs will follow the same rule as all the rest dialogs, i. e. the will not be shown in the taskbar if their parent is not null.

Print and Page dialogs (bot native and Java) are always shown in the taskbar too, but the fix for 6488834 can't fix this problem as the problem lies in Java2D code, not in AWT. After the fix for 6302514 print and page dialogs are always created with a null parent, which is not completely right. I beleive if a parent is specified for a print dialog (this cannot be appliet to page dialogs) then it shouldn't be visible in the taskbar. At the same time the fix for 6402514 must not be broken: if a print dialog is created with a null parent and some toolkit-modal dialog is visible, then the print dialog should be blocked. However, if this toolkit-modal dialog is passed as a parent for a print dialog, then the print dialog should remain alive and block the toolkit-modal dialog.

Also, it would be fine to have an API to provide a parent for Page dialogs like it is possible for Print dialogs with getPrintJob method in java.awt.Toolkit class. This parent then can be used to determine if the page dialog should appear in the taskbar or not.

                                    

Comments
EVALUATION

java.awt.Toolkit.getPrintJob not passing a parent frame to print dialog is a regression in 1.5 when we did some work on print dialog.  This is what will be addressed in this bug.  The other issue mentioned that we should not have a null parent for PrinterJob's print and page dialog requires new API.
                                     
2007-01-17



Hardware and Software, Engineered to Work Together