-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
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)
======================================================================
- duplicates
-
JDK-4128471 JTextComponent does not allow to enter characters via Ctrl+Alt (Alt Gr)
-
- Closed
-