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

JTextField does not accept some numeric keys on Linux

XMLWordPrintable

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



      Name: skT45625 Date: 08/14/2000


      java version "1.3.0beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta_refresh-b09)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)


      There is a bug with JTextField under Linux (JDK1.3 refreshed beta).
      Given the following sample application:

      import java.awt.*;
      import javax.swing.*;

      public class TextTest extends JFrame
      {
      // Application main entry point:
      public static void main(String[] args)
      {
      TextTest win = new TextTest();
      }
      // Constructor of the frame
      private TextTest()
      {
      super("JTextField Test");
      Container contentPane = getContentPane();
      contentPane.setLayout(new BorderLayout());
      JTextField field = new JTextField(20);
      contentPane.add(field, BorderLayout.CENTER);
      setDefaultCloseOperation(EXIT_ON_CLOSE);
      pack();
      setVisible(true);
      }
      };

      I tried to enter numeric value (without using the numeric keypad) in the
      JTextField.
      Only 4 and 6 are accepted ! 1,2,3,5,7,8,9 and 0 are rejected !
      As I could only check this on one computer, here is the description of it
      (since maybe this bug could depend on the material):
      Gateway 2000 Solo 2500
      French Keyboard (AZERTY)

      I tried the same application under Windows NT and it worked fine.
      (Review ID: 108398)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: