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

JTextComponents on Linux JDK 1.3 ignore some key inputs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0_01
    • client-libs
    • x86
    • linux



      Name: rmT116609 Date: 01/03/2001


      java version "1.3.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01)
      Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode)


      JTextComponents(JTextField, JTextArea, etc.) do not accept ^~key, @`key, and
      :*key on Linux Red Hat 6.1. The kernel is updated to 2.2.18 , JDK 1.3 from
      Sun. Any other applicaiton doesn't show this phenomenon except Java. My env is
      GNOME and the sawfish window manager. My keyboard is Japanese
      109(106) keyboard which is Windows-smutted.

      This is so called "Japanese 106/109 keyboard" which has
      two special keys that have Windows icon printed on them.
      Thus we call them "Windows-smutted." Here in Japan, every
      Windows PC is sold with this type of keyboard, so nothing
      special about it. In the /etc/X11/XF86Config file, this
      type of keyboard is specified as:

         XkbModel "jp106"
         XkbLayout "jp"

      The most serious problem is we can't input '@'
      for a mail-address and ':' for a URL.
      ---an example program---
      import javax.swing.*;
      public class JTextTest{
        public static void main(String[] argv){
          JFrame frame=new JFrame();
       frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(400, 150);
          JTextField tf=new JTextField("Testing :, @, ^, etc. on Linux", 30);
          frame.getContentPane().add(tf);
          frame.setVisible(true);
        }
      }
      ------------------
      (Review ID: 114395)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: