JDK-8044211 : [macosx] applet with JFrame causes text input to be limited to ascii
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2014-05-26
  • Updated: 2014-05-29
  • Resolved: 2014-05-29
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 9
9Resolved
Related Reports
Duplicate :  
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 ----------


Comments
is it reproducible on 8 GA?
29-05-2014