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

PIT: Text in TextArea scrolls to its left one char when selecting the text from the end

    Details

    • Subcomponent:
    • Introduced In Version:
      6
    • CPU:
      generic, x86
    • OS:
      generic, windows_xp

      Backports

        Description

        I have a textarea with some text. Click at end of the text and start selecting the text with mouse by dragging it till the begining of the text. The text in the textarea scrolls one char left. The first char moves out of textarea and hence gets hidden partially. This is not happening on any of the previous builds. This behavior is noticed only on WinXP, with the current PIT build.

        The text should not scroll beyond the boundary of the textarea and there is no need to scroll when the length of the text is well within the textarea bounds.

        Here is the PIT build:
        java version "awt.pit-jcg-win-03-2004-10-15-Fri-int.mustang"
        Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2004-10-15-Fri-int.mustang)
        Java HotSpot(TM) Client VM (build 1.6.0-ea-b08, mixed mode)

        I think the following bug fix has introduced this bug:
        5003402: REGRESSION: java.awt.TextArea stops scrolling when it loses the keyboard focus.

        I have attached a sample test. Execute it on WinXP. Select the text using mouse starting from the end to the begining. If the text scrolls to its left, the bug is reproduced.
        ###@###.### 10/18/04 11:19 GMT

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arapte Ambarish Rapte
                  Reporter:
                  pmohansunw Praveen Mohan (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: