On Tue, 12 Mar 2024 10:51:47 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> As I understood, testUI calls the passed method in EDT so I think it's better > to init the swing variables there.. Yes, that's true, if you pass a lambda expression to `testUI`, it is called on EDT. Since `initialize` is called from `createUI`, both methods will be called on EDT. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18180#discussion_r1521271334