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

Unity: getLocationOnScreen lies if setLocationByPlatform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • None
    • Ubuntu 16.04 Unity (incidentally, Xinerama, dual screen)

    • b130
    • 9
    • linux_ubuntu

      Run on Ubuntu 16.04 Unity java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java (perhaps for clarity adding delays to see everything and be sure): it most probably would properly tile Frames side by side. Thus, the location of the second Frame would be something like (500,24). It is configurable but still, Frames will be placed good enough.

      Now, since JDK9 b 130 the test will fail reporting that both Frames have the same location. It is definitely not the inset dance since you may add whatever delays and actions before getting location on screen: it still will be wrong.

      With b129 it works well.


      RULE "java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java" Exception java.lang.RuntimeException: Test FAILED: both frames have the same location java.awt.Point[x=0,y=24]

      On 14.04, Xfce4 system actually places the Frames on top of each other in the middle of the screen but it is just FYI.

            ssadetsky Semyon Sadetsky (Inactive)
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: