On Tue, 6 Aug 2024 11:01:26 GMT, Tejesh R <t...@openjdk.org> wrote:

>> test/jdk/java/awt/Checkbox/CheckboxCheckerScalingTest.java line 53:
>> 
>>> 51:         Robot robot = new Robot();
>>> 52:         try {
>>> 53:             SwingUtilities.invokeAndWait(() -> {
>> 
>> I think `EventQueue.invokeAndWait()` should be used instead of 
>> `SwingUtilities.invokeAndWait()` for AWT test.
>
> 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.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/20441#discussion_r1705490446

Reply via email to