RFR: 8341982: Simplify JButton/bug4323121.java [v3]

Alexey Ivanov aivanov at openjdk.org
Fri Oct 18 11:44:19 UTC 2024


On Tue, 15 Oct 2024 01:00:02 GMT, Harshitha Onkar <honkar at 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


More information about the client-libs-dev mailing list