<Swing Dev> RFR: JDK-8258884: [TEST_BUG] Convert applet-based test open/test/jdk/javax/swing/JMenuItem/8031573/bug8031573.java to a regular java test [v5]
Alexey Ivanov
aivanov at openjdk.java.net
Wed Jan 6 15:36:58 UTC 2021
On Wed, 6 Jan 2021 14:28:29 GMT, K Suman Rajkumaar <github.com+70650887+skodanda at openjdk.org> wrote:
>> Hi All, Could you please review this fix for JDK16?
>>
>> Problem Description: The test open/test/jdk/javax/swing/JMenuItem/8031573/bug8031573.java is applet based.
>>
>> Fix: Rewritten the above applet based test to a regular java test.
>>
>> Best Regards,
>> K Suman Rajkumaar
>
> K Suman Rajkumaar has updated the pull request incrementally with one additional commit since the last revision:
>
> Updated with another set of review comments from Alexey
>
> Updated with another set of review comments from Alexey.
Changes requested by aivanov (Reviewer).
test/jdk/javax/swing/JMenuItem/8031573/bug8031573.java line 125:
> 123: });
> 124: frame.setSize(760, 250);
> 125: frame.pack();
`setSize` is redundant when you call `pack`. The latter will also set size of the frame based on the preferred size determined by the layout manager.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1878
More information about the swing-dev
mailing list