On Tue, 6 Aug 2024 12:57:00 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:
>> Why? > > I remember it was advised to use "EventQueue.invokeAndWait() for AWT tests > and SwingUtilities.invokeAndWait for swing tests and we should avoid calling > swing class from awt. Yes, this is correct. I have seen many AWT tests use `EventQueue.invokeAndWait()` ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/20441#discussion_r1705907990