JDK-7195159 : Warn sound on Enter in java.awt.TextField
  • 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-08-30
  • Updated: 2012-09-04
  • Resolved: 2012-09-04
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 8
8Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.7.0-ea-b108)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b05, mixed mode)

A DESCRIPTION OF THE PROBLEM :
When pressing enter inside the TextField the windows warn sound occurs. In all previous Java versions no sound occured.

We are running a chat-plattform with 1 million monthly unique users. We use an awt TextField to allow copy/paste without any warnings. Now, everytime a chat message is entered a warn sound is played, which severly limits the usability of our service.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) go to http://www.knuddels.de/index.html?c=0 and press enter in any of the applet Textfields

OR

2) see attached code


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.TextField;

import javax.swing.JFrame;
import javax.swing.JPanel;


public class TextFieldBugDemo
{
	public static void main(String[] args)
	{
		JFrame jFrame = new JFrame();
		JPanel comp = new JPanel();
		jFrame.add(comp);
		TextField comp2 = new TextField();

		comp.add(comp2);
		jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		jFrame.setVisible(true);
	}
}

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