On Thu, 21 Apr 2022 08:45:14 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> Maybe a Thread.sleep(1000) is also needed after frame.setVisible(true); and > also frame.dispose() as test() is called 4 times so we will give time to > setup test after frame is visible and frame is disposed at test completion. I did not find this to be necessary. As I wrote putting a sleep at the beginning of InvisibleOwner also cures this so I am sure it is just a matter of letting things settle down AFTER the test. ------------- PR: https://git.openjdk.java.net/jdk/pull/8312