Activate the window with a mouse click. Close tooltip by moving the window out of the component.
Multiple runs have been performed in the CI, totaling 500 runs on each Windows and Mac OS. While testing the fix, I have discovered that, while this fixes the problem on Mac and Windows, on linux the test is not fully stable. I have created a bug for that and excluded the test on Linux. ------------- Commit messages: - JDK-8225012: sanity/client/SwingSet/src/ToolTipDemoTest.java fails on Windows Changes: https://git.openjdk.org/jdk/pull/10053/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10053&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8225012 Stats: 16 lines in 2 files changed: 9 ins; 3 del; 4 mod Patch: https://git.openjdk.org/jdk/pull/10053.diff Fetch: git fetch https://git.openjdk.org/jdk pull/10053/head:pull/10053 PR: https://git.openjdk.org/jdk/pull/10053