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

Pressing space in the textarea is not enabling the horizontal scrollbar.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 6
    • client-libs
    • x86
    • windows_xp

      Step to reproduce
      ------------------
      1) Run the attached program. You can see a frame having some components. Oberve that textarea having some character from a to v .
      2) Click on "Get Size" button. you see contents of the textarea & its length printed on the console.
      3) Press a single character in the textarea. Observe the horizontal scrollbar is enable.
      4) Click on "Get Size" button. you see the contents of the textarea & its length printed on the console.
      5) Delete the newly added character. Observe the horizontal scrollbar is disabled.
      6) Click on "Get Size" button.You see the contents of the textarea & its length printed on the console.
      7) Press space bar to add space character into the textarea, you can add more than one space. Observe the horizontal scrollbar is still disabled.
      8) Click on "Get Size" button.You see the contents of the textarea & its length printed on the console, which takes space into consideration i,e space is added to string & prints its length.

      I tested the same scenario with notepad, its works fine i,e pressing space bar is enabling the horizontal scrollbar.

      I tested this with 1.4.2/fcs/b28 till Mustang b90. This is reproducable.

            Unassigned Unassigned
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: