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

Service Dialog is not positioned properly if the coords are invalid, on Win32.

XMLWordPrintable

    • 2d
    • mustang
    • x86
    • windows_xp
    • Verified

      The specification for ServiceUI.printDialog claims that an implementation will position the print dialog properly if the coordinates specified by the application are invalid. This does not seem to be happening in the case of win32 platforms. On Win32, if I specify the coordinate values as -1000, -1000 then the print dialog vanishes from the screen. But when I run the same application on Solaris, the dialog is getting placed at 0,0 by default if the coordinates are invalid. Similar behaviour should be simulated for win32 also.

      This is reproducible on all the builds right from jdk1.4+.
      I have attached a sample testcase. Execute the testcase on any Win32 platform. If you do not see the print dialog then the bug is reproduced.

      I tested this on Win XP and Win 2000 and able to reproduce the problem on both.

            jgodinez Jennifer Godinez (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: