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

In WIN32 getLocationOnScreen() doesn't return the exact location on screen

XMLWordPrintable

    • beta
    • x86
    • windows_nt
    • Verified


      Synopsis : In Windows, method getLocationOnScreen() is not
      returing the location of the component's top-left corner in
      the screen's coordinate space.

      Bug : In Windows, this method returns the location of the Component
      with respect to the Frame and not with respect to the Screen's
      Coordinate Space.
      How to reproduce the Bug :
      ==========================

      Run LocationOnScreenBug .
      This will pop up a frame with a TextField in it.
      The location of the TextField in the Screen' Coodinate Space
      will be written on the TextField.

      Run this program in Merlin beta - 28 and Compare the locations.

      The coordinate returned in Merlin - Beta 29 will be with respect to the Frame and not with respect to the Screen's Coodinate Space. The bug is reproduced.

            rraysunw Richard Ray (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: