JDK-6512167 : JMenu can't be closed after pressing Escape key
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-01-11
  • Updated: 2011-01-19
  • Resolved: 2007-01-30
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
7Resolved
Related Reports
Duplicate :  
Description
Any opened menu should be closed, after pressing escape key & pressing arrow key should allow the user to navigate the menu. but this is not happening. But we can do all the operation using mouse.

Step to reproduce:-
------------------
1) Install jre.
2) Run SwingSet2 in applet mode on IE6.0 & firefox 1.5.0.9.
3) Once the applet is loaded, Reload the applet . click on any menu & press escape key. If menu does not close. Try to navigate the menu using arrow key.  If you see the same then the bug is reproduce.
4) Select any menuitem to close the menu using mouse.
5) Click on any button of the toolbar , so that the selected button get the focus.
6) Select any menu , you will see the drop down of the menu. 
7) Press left arrow key . Observe pressing left arrow key should select another menu, but you can  see that buttons of the toolbar are getting selected.

The same behaviuor can be seen in Mustang b90 , bundles what i have. This is reproduced till 1.6.0_ub01 & the recent awt respin for 1.6.0_ub02.

Comments
EVALUATION It is a regression of 6280964. It will be fixed in bounds of 6492266.
30-01-2007

EVALUATION It looks like another menu appContext problem, reassigned to responcible engineer
25-01-2007

EVALUATION It seems that the problem is that menubar doesn't get focus if clicked with mouse, so most probably something is wrong with Swing menus. Dispatching this change request to Swing team for further investigation.
15-01-2007