JDK-4140092 : JTextPane does not take { and } from Swedish keyboard
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-05-19
  • Updated: 1998-06-01
  • Resolved: 1998-06-01
Related Reports
Duplicate :  
Description

Name: rk38400			Date: 05/19/98


The following test program starts a window which
contains a JTextPane and an awt TextField.
Try to enter curly braces { and } into the 
TextField and JTextPane, they show up in the awt
TextField for JDK 116 or JDK1.2beta3, but not in
JTextPane for JDK116+Swing1.0.1 or Swing1.0.2.

You may try this on with a swedish keyboard, 
or with an English keyboard by doing:
1. add the Swedish (or Swedish(Finland)) keyboard
to your keyboard list using Windows' control panel.
2. Switch between English and other keyboards by
pressing the leftAlt+Shift
3. once you are on Swedish (or Swedich Finland) 
keyboard, rightAlt+7 is the { (left brace) and
rightAlt+0(zero) is the } (right brace).

Here is the testing program:

//import com.sun.java.swing.*;
import java.awt.swing.*;
import java.awt.TextField;
import java.awt.BorderLayout;
public class TestTextPane {
    public static void main(String args[]) {
	JPanel pane = new JPanel(new BorderLayout());
	JTextPane textPane = new JTextPane();
	textPane.setText("Try to type the letters you have problem with here.");
	JScrollPane scroller = new JScrollPane();
	scroller.getViewport().add(textPane);
	JFrame f = new JFrame();
	pane.add(scroller);
	pane.add(new TextField(), "South");
	f.getContentPane().add(pane);
	f.setSize(200, 150);
	f.show();
    }
}
(Review ID: 30711)
======================================================================

Comments
WORK AROUND Name: rk38400 Date: 05/19/98 None ======================================================================
11-06-2004