JDK-8036819 : JAB: mneumonics not read for textboxes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.accessibility
  • Affected Version: 7u7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-06
  • Updated: 2015-04-21
  • Resolved: 2014-04-28
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.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u72Fixed 8u20Fixed 9 b15Fixed
Description
Pre-steps:
---------
Install JAWS enabled VM. Install and launch JDeveloper with JDK7

Steps:
------
1. Go to Gallery and create a 'Fusion Web Application (ADF)'
2. Go to 'New Gallery | Web Tier | HTML' and choose the option 'JavaScript
File'
3. <TAB> through the components in 'Create JavaScript File' dialog

Result:
-------
Mnuemonics not read for:  File Name, Directory 


Comments
JTreg test included
2014-04-22

TextField Mnemonic Test
2014-04-10

In JDK9, JButton, JLabel and JComponent implement AccessibleExtendedComponent with getAccessibleKeyBinding. For component like JTextField, it should actually use it's Label's mnemonic if there is one exist. So what we need to do is to get linked JLabel's keyBinding in JComponent: public AccessibleKeyBinding getAccessibleKeyBinding() { // Try to get the linked label's mnemonic if it exists // Object o = getClientProperty(JLabel.LABELED_BY_PROPERTY); if (o instanceof Accessible) { AccessibleContext ac = ((Accessible) o).getAccessibleContext(); if (ac != null) { AccessibleComponent comp = ac.getAccessibleComponent(); if (! (comp instanceof AccessibleExtendedComponent)) { return null; } AccessibleExtendedComponent aec = (AccessibleExtendedComponent)comp; return aec.getAccessibleKeyBinding(); } } return null; }
2014-04-07

assigned in accordance with bugDB assignment
2014-03-07

In case there is any helpful documentation here: http://docs.oracle.com/javase/tutorial/uiswing/misc/keybinding.html
2014-03-06