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

Alexey Ivanov aivanov at openjdk.org
Mon Oct 21 18:52:15 UTC 2024


On Mon, 21 Oct 2024 15:54:32 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Use JButton directly instead of TestButton subclass
>
> test/jdk/javax/swing/JButton/bug4323121.java line 50:
> 
>> 48: 
>> 49:     static JFrame frame;
>> 50:     static JButton button;
> 
> You may move it inside main.

Nope, the `button` field is used to get its location on the screen.

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

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


More information about the client-libs-dev mailing list