Duplicate :
|
http://java.net/jira/browse/MACOSX_PORT-744 submitted 2011/11/22 by Yuri Nesterenko Build: b218 java/awt/Multiscreen/LocationRelativeToTest/LocationRelativeToTest.java Right location for the window center: java.awt.Point<span class="error">[x=300,y=250]</span> Actual location for the window center: java.awt.Point<span class="error">[x=-200,y=250]</span> java.lang.RuntimeException: Test FAILED: setLocationRelativeTo() operates incorrectly at LocationRelativeToTest.checkLocation(LocationRelativeToTest.java:107) at LocationRelativeToTest.main(LocationRelativeToTest.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.sun.javatest.regtest.MainWrapper.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:722)