JDK-5087097 : Sub-menus in a popup menu are not traversable through keyboard, on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2004-08-14
  • Updated: 2005-12-02
  • Resolved: 2005-06-29
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 6
6 b38Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
I am showing an AWT popup menu when the user clicks right mouse button inside a text area. Each menu item in the popup menu has a sub-menu. When the popup menu is shown, I am moving mouse over all the menu items. I am clicking the mouse and releasing it on the menu item 'Menu 20'. Now I am traversing through the menu items through keyboard. Press up/down arrow keys so that 'Menu 20' gets highlighted. Press the Right arrow to bring up the sub-menu. But the sub-menu is not shown. 

This happens only when the mouse is clicked and released on a menu-item before the key traversal. If you continue to repeat the above steps for other menu items, those items also will not show the sub-menus when traversed through the keys.

This is noticed on Solaris9, 10 with CDE. This is reproducible since Tiger-b49 and not before since the above operation was causing a VM crash (5021183). This is also reproducible on X86 Solaris10 with JDS. Typically all the menu-tems in the popup menu must be traversible through keyboard.

To reproduce this bug, do the following:
1. Run the attached code on Solaris-Sparc or X86 machine.
2. You would see a TextArea. Right click inside the text area. (Make sure you click only once. Clicking twice would make sub-menus appear on a diff location and a bug has been filed on this - 5040712).
3. A popup menu would appear.
4. Roll over the mouse on the popup menu and keep it on top of 'Menu 20'. The sub menu will be visible.
5. Click the mouse once and release it.
6. Move the up/down arrow keys and press right arrow on every menu item.
7. If sub-menu does not appear for 'menu 20' on pressing the right arrow, the bug is reproduced.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
26-08-2004

EVALUATION Name: df153228 Date: 08/16/2004 All behavior is reproducible on solaris-i586. You cannot go by keyboard into which menu that you have clicked. But you can enter in others. With solaris-sparc you could see different behavior in common, but situation with keyboard is the same. The problem specific for MToolkit. With XToolkit you can see another problems. See 5090651. ###@###.### ====================================================================== Name: df153228 Date: 08/17/2004 This is not a regression and this behavior is not critical for Tiger release. So we'll commit it on mustang. ###@###.### ====================================================================== ###@###.### 2004-08-25 ###@###.### 2004-08-25 This bug is MAWT-specific. ###@###.### 2005-06-29 12:24:46 GMT
25-08-2004