On Tue, 8 Nov 2022 08:57:54 GMT, Naveen Narayanan <d...@openjdk.org> 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. test/jdk/java/awt/Desktop/JMenuItemSetAcceleratorTest.java line 45: > 43: > 44: frame.setJMenuBar(bar); > 45: frame.setBounds(200, 200, 200, 200); Position the frame to the middle of the screen frame.setLocationRelativeTo(null); ------------- PR: https://git.openjdk.org/jdk/pull/11035