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

TableDemo-Print message dialog is displayed in the wrong screen, on multi-mon

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b09
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: