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

Abhishek Kumar abhiscxk at openjdk.org
Fri Oct 18 12:12:40 UTC 2024


On Fri, 18 Oct 2024 11:39:40 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> 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.

Looks clearer now.

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

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


More information about the client-libs-dev mailing list