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

[macosx] applet with JFrame causes text input to be limited to ascii

    XMLWordPrintable

Details

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_05"
      Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      13.2.0 Darwin Kernel Version 13.2.0 (OSX 10.9.3)

      A DESCRIPTION OF THE PROBLEM :
      When running applet with JFrame as main window all input into JTextFields and other text input's is limited to a-z. if I try inputting åäö nothing is getting inputted. Even if I add a key listener, there are no chars coming in.

      I tried reverting to java 7 u55 and there it works as expected.

      I also tried removing the JFrame and adding the textfield to the applet itself and that also works as expected. so it seems to be connected to the JFrame.

      REGRESSION. Last worked in version 7u45

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_45"
      Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
      Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      open applet page
      applet will launch
      try entering åäö into textfield

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the textfield should now contain åäö
      ACTUAL -
      nothing is entered

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      // index.html

      <html>
      <title>Test applet</title>
      <hr>
      <applet code="TestApp.class" height="400" width="600">
      </applet>
      <hr>
      </html>


      // TestApp.java

      import javax.swing.*;

      public class TestApp extends JApplet {

      public void init() {
      JFrame.setDefaultLookAndFeelDecorated(true);
      JFrame frame = new JFrame("Test app");
      frame.setContentPane(this.getContentPane());

      JTextField textField = new JTextField(20);
      frame.add(textField);

      frame.pack();
      frame.setVisible(true);
      }
      }
      ---------- END SOURCE ----------

      Attachments

        Issue Links

          Activity

            People

              pchelko Petr Pchelko (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: