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

Enter key in JTextField on Solaris produces whitespace in string.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.2.2
    • client-libs
    • None

      # java -fullversion
      java full version "Solaris_JDK_1.2.2_05a"

      When the cursor is in a JTextField, hitting the Enter key causes a
      character of white space to be put into the text field. Hitting the
      Return key does not do this. The expected behavior is that neither
      should actually change the contents of the field.

      For example, if the cursor is after the 'f' in "foo", the
      result of hitting Enter is "f oo".

      This problem happens on Solaris, but does not seem to occur on Win32
      when running 1.2.2-001.

      This can be reproduced using SwingSet.

      ---

      Just it case it wasn't clear, the key with the problem is the
      "Enter" key on the numeric keypad, as opposed to the Enter/Return
      key on the QWERTY part of the keyboard.

            svioletsunw Scott Violet (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: