On Tue, 15 Oct 2024 01:00:02 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:

>> If anyone else thinks using an anonymous class here makes the code shorter 
>> and cleaner, I'll go for it.
>
> Both approaches sounds okay to me, but adding an anonymous class similar to 
> WindowAdapter() may be clearer.

Since you both for inlining the listener, I've amended the code.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21475#discussion_r1806356147

Reply via email to