Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7195159

Warn sound on Enter in java.awt.TextField

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 7
    • client-libs
    • x86
    • windows_7

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

            denis Denis Fokin (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: