On Wed, 9 Nov 2022 05:40:46 GMT, Naveen Narayanan <[email protected]> wrote:

>> Colocate JMenuItemSetAcceleratorTest to a regression test.
>> 
>> This testcase will
>> 1) Verify setAccelerator method of JMenuitem.
>> 2) Check that the selection of a menu item in the menu bar will generate 
>> action by a key combination of META+M.
>> 
>> Testing:
>> Tested using Mach5(20 times per platform) in Mac OS, Linux and Windows and 
>> got all pass.
>
> Naveen Narayanan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   8296275: Review comments fixed.

test/jdk/java/awt/Desktop/JMenuItemSetAcceleratorTest.java line 48:

> 46: 
> 47: public class JMenuItemSetAcceleratorTest {
> 48:     private static JFrame frame = new JFrame();

Creation of frame should be done within the EDT.

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

PR: https://git.openjdk.org/jdk/pull/11035

Reply via email to