JDK-6380494 : REGRESSION: Typed menu mnemonics appear in text components
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-02-02
  • Updated: 2007-10-16
  • Resolved: 2006-02-08
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-rc-b69)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b69, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
When using JMenu mnemonics e.g. ALT+f (file) s (save), the second letter which is typed appears in any editable text componenent which has the focus.

For many applications ALT+f pulls down the file menu. If you then type an 's' it selects the save option from the menu.  In Mustang when you type the second letter ('s' in this case) it appears as if you typed it into the current text component.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Start the SwingSet2 demo.
Select the JInternalFrame Demo (far left)
Click in the "frame title" JTextField to give it the focus.
Hold in ALT and press 'F' (this pulls down the File menu)
Press 'b' (to select the "about" option).
Dismiss the about dialog.
A 'b' now appears in the TextField (this is a regression).


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The menu option is selected, and no additional text appears in the TextField.
ACTUAL -
The character 'b' is appended to the text field.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
SwingSet2 can be used as outlined above.
---------- END SOURCE ----------

Release Regression From : 5.0
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

Comments
EVALUATION Seems it regressed in JDK6.0b58 by the fix for 5044469
03-02-2006

EVALUATION I believe this is a duplicate of an existing AWT bug. Unfortunately I don't know the bug number. Can AWT please dig it up and close this as a duplicate if applicable?
02-02-2006