On Thu, 28 Oct 2021 20:20:04 GMT, Alexander Zvegintsev <[email protected]> wrote:
> Test trying to call `button.getLocationOnScreen()` when its frame not yet > fully configured, so the obtained button location is shifted by window's > height. > > Waiting a bit after `setVisible()` call fixes the issue. Some cleanup was > made also. Testing is green on all platforms. test/jdk/java/awt/event/MouseEvent/SpuriousExitEnter/SpuriousExitEnter_3.java line 97: > 95: r.delay(1000); > 96: > 97: Point centerA = new Point(comp.getLocationOnScreen().x + > comp.getWidth() / 2, I think the comp.getLocationOnScreen() should be moved to the EDT, and probably that will solve the problem even w/o delay? ------------- PR: https://git.openjdk.java.net/jdk/pull/6164
