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

JTextPane does not take { and } from Swedish keyboard

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs



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

            bcbeck Brian Beck (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: