JDK-6367006 : REGRESSION: Beep when focus in TextField and press Enter key
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-12-23
  • Updated: 2011-02-16
  • Resolved: 2006-03-20
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 b77Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
Standard edition 1.6.0-rc-b64, mixed mode, sharing

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

A DESCRIPTION OF THE PROBLEM :
Pressing the Enter key results in an alert tone beep when focus is in a TextField.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.  Run the applet with source code given below.  A working applet and the source code are at segal.org/java/beeping_textfield/.
2.  Click in the TextField to get focus
3.  Press the Enter key

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No sound should be produced.
ACTUAL -
An alert sound is produced.  This is a problem because it suggests to the user that they did something wrong or the program malfunctioned.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.applet.*;
import java.awt.*;

public class beeping_textfield extends Applet {

public void init()
{
    setBackground(new Color(200, 150, 200));
    TextField textField = new TextField();
    add(textField);
}
} // END OF Class beeping_textfield

---------- END SOURCE ----------

Release Regression From : 5.0u6
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 Regression of 5087251/6181174. The fix altered the way of processing KeyEvents (they're processed earlier now), but did not block the processed event from propagating further down the handleEvent chain. Looks like we should block this propagation.
23-01-2006

EVALUATION it's not reproduced with JDK6.0b40 but reproduced with JDK6.0b45. Possibly a regression of 4302718
27-12-2005