United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7194469 Pressing the Enter key results in an alert tone beep when focus is TextField
JDK-7194469 : Pressing the Enter key results in an alert tone beep when focus is TextField

Details
Type:
Bug
Submit Date:
2012-08-28
Status:
Resolved
Updated Date:
2013-07-11
Project Name:
JDK
Resolved Date:
2012-09-25
Component:
client-libs
OS:
windows_xp,windows_7
Sub-Component:
java.awt
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:
Duplicate:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
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.

  Bug report data and sample copied from older bug:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6367006

I can confirm that under 1.7.0_06 that the issue occurs. My other test version of Java is 1.6.0_24  which does not exhibit the issue. It may have occurred anywhere between these versions.

Search tag:
Beep or ding on enter

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

CUSTOMER SUBMITTED WORKAROUND :
Requires downgrade of java

                                    

Comments
EVALUATION

The next mail has been sent to the submitter.

==============
I am working on the issue that you have recently filed against JDK.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7194469

You have specified that the problem is reproducible on Windows XP. I cannot reproduce the problem. Could you try to reproduce it with another Windows OS like Windows Vista or Windows 7?
==============
                                     
2012-08-30
EVALUATION

The problem is reproducible with Java Plug-in 10.7.2.10 Using JRE version 1.7.0_07-b10 Java HotSpot(TM) Client VM.
                                     
2012-09-04
EVALUATION

The problem is not reproducible with jdk7u4 so looks like a regression.
                                     
2012-09-04
EVALUATION

The TextField control starts beeping on some keys pressing (enter, up, down...) after switching the EDIT control to RICHEDIT. 

The suggested fix disables the beeper before the RICHEDIT control keys processing and turns the beeper to the initial state after that.
                                     
2012-09-05
EVALUATION

changeset: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/b8a1ff892b33
                                     
2012-09-07
URL:   http://hg.openjdk.java.net/jdk8/build/jdk/rev/b8a1ff892b33
User:  katleman
Date:  2012-09-27 06:14:08 +0000

                                     
2012-09-27



Hardware and Software, Engineered to Work Together