JDK-7197141 : REGRESSION: Beep when focus in TextField and press Enter key
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-09-08
  • Updated: 2012-10-01
  • Resolved: 2012-10-01
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Using JRE version 1.7.0_07-b10 Java HotSpot(TM) Client VM

ADDITIONAL OS VERSION INFORMATION :
Windows 7 ver 6.1.7601

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

This identical bug was introduced (and then resolved) in a previous version, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6367006


REGRESSION.  Last worked in version 6u31

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 ----------
---------- 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 ----------
---------- END SOURCE ----------

Comments
This is a duplicate of JDK-7194469, which is resolved by the next change http://hg.openjdk.java.net/jdk8/awt/jdk/rev/b8a1ff892b33
01-10-2012