RFR: JDK-8290469: Add new positioning options to PassFailJFrame test framework [v6]

Alexey Ivanov aivanov at openjdk.org
Fri Aug 5 20:18:08 UTC 2022


On Fri, 5 Aug 2022 20:10:48 GMT, Phil Race <prr at openjdk.org> wrote:

>> test/jdk/java/awt/regtesthelpers/PassFailJFrame.java line 309:
>> 
>>> 307:             } catch (InterruptedException e) {
>>> 308:                 e.printStackTrace();
>>> 309:             }
>> 
>> Is it safe to call on EDT?
>> 
>> If `positionTestWindow` is not to be called on EDT, should it be enforced?
>
> The intention is that it can be called either way - on or off.

Is that possible? Toolkit thread is not EDT, therefore native events are processed, it's probably enough to update the frame coordinates while EDT is blocked and doesn't handle events.

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

PR: https://git.openjdk.org/jdk/pull/9525



More information about the client-libs-dev mailing list