JDK-8158496 : [macosx] Swing mnemonics broken on Mac
Type:Bug
Component:client-libs
Sub-Component:javax.swing
Affected Version:9
Priority:P3
Status:Closed
Resolution:Duplicate
OS:os_x
Submitted:2016-06-02
Updated:2019-02-01
Resolved:2019-02-01
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
On Aqua, mnemonics once worked with Ctrl added. Run SwingSet2.jar or any demo with JMenu and see that it doesn't work any more with b120 .
Comments
all are reproducible in:
Java(TM) SE Runtime Environment (build 9-internal+0-2016-06-02-113546.********.client)
Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2016-06-02-113546.********.client, mixed mode)
03-06-2016
RULE "closed/javax/swing/JComboBox/4513773/EditableFocusTest.java" Exception java.lang.RuntimeException: Editor did not gain focus
02-06-2016
RULE "java/awt/Focus/KeyEventForBadFocusOwnerTest/KeyEventForBadFocusOwnerTest.java" Exception java.lang.Exception: Not all expected events were received
One could see Alt pressed by robot (characters in the menu bar become underscored) but there are no dropdowns.
02-06-2016
RULE "closed/javax/swing/AbstractButton/6298940/bug6298940.java" Exception java.lang.RuntimeException: Mnemonic didn't fire an action
02-06-2016
RULE "javax/swing/JFileChooser/4524490/bug4524490.java" Exception java.lang.RuntimeException: Focus is not transfered to the Folders list.
Here, in Motif LaF, Ctrl+Alt+L doesn't work as expected
02-06-2016
RULE "javax/swing/JFileChooser/8002077/bug8002077.java" Exception java.lang.RuntimeException: Save button is not pressed!
Here, mnemonic issue on JFileChooser in Nimbus (not even Aqua)
02-06-2016
RULE "javax/swing/JMenu/4692443/bug4692443.java" Exception java.lang.RuntimeException: Test failed.
02-06-2016
RULE "javax/swing/JMenu/4515762/bug4515762.java" Exception java.lang.RuntimeException: Action has not been received
Here neither robot nor human can get Swing menu drop down with Ctrl+Alt+key.
02-06-2016
RULE "javax/swing/JTextField/8036819/bug8036819.java" Exception java.lang.RuntimeException: Test failed.
Here Util.hitMnemonics is used and doesn't work to navigate between text fields.
02-06-2016
RULE "javax/swing/JMenuBar/4750590/bug4750590.java" Exception java.lang.RuntimeException: Test FAILED!
Here, mnemonics doesn't work either -- but perhaps it is JMenu-specific issue.