-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b09
-
generic
-
generic
-
Verified
Where: SwingSet2 - JTable Demo
feature: Printing
Config: Multi-Screen setup
Platform: All
Run SwingSet2. Using 'multiscreen' menu, create a new instance on the secondary monitor. Goto JTableDemo and click the 'print' button. A print dialog comes up (print dialog still appears on the primary screen though you are interacting with a control on the sec monitor. A separate bug has been filed against PrinterJob: 5109347). Click 'print' on the print dialog. After the table is printed, an information dialog appears to inform the user that the printing operation has completed. This dialog appears on the primary monitor instead of sec. monitor. This is incorrect.
This is reproducible on Tiger as well as Mustang. This is reproducible on all platforms.
To reproduce the bug, run the swingset2 as mentioned above.
When I looked at the code more closely - TableDemo.java, the call to JOptionPane.showMessageDialog() passes 'this' for the parent component argument. I changed it to 'getDemoPanel()' and it worked fine. I am not sure whether this is the right fix.
feature: Printing
Config: Multi-Screen setup
Platform: All
Run SwingSet2. Using 'multiscreen' menu, create a new instance on the secondary monitor. Goto JTableDemo and click the 'print' button. A print dialog comes up (print dialog still appears on the primary screen though you are interacting with a control on the sec monitor. A separate bug has been filed against PrinterJob: 5109347). Click 'print' on the print dialog. After the table is printed, an information dialog appears to inform the user that the printing operation has completed. This dialog appears on the primary monitor instead of sec. monitor. This is incorrect.
This is reproducible on Tiger as well as Mustang. This is reproducible on all platforms.
To reproduce the bug, run the swingset2 as mentioned above.
When I looked at the code more closely - TableDemo.java, the call to JOptionPane.showMessageDialog() passes 'this' for the parent component argument. I changed it to 'getDemoPanel()' and it worked fine. I am not sure whether this is the right fix.
- relates to
-
JDK-5109347 PrinterJob.printDialog() does not support multi-mon, always displayed on primary
- Closed