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

Auto-scrolling does not work properly for TextArea when appending some text, on XToolkit

XMLWordPrintable

    • b47
    • sparc
    • solaris_9
    • Verified

      I have a textarea with SCROLLBARS_NONE option. I am appending some text to it programmatically through append() method call. When the appended text occupies more than one row, text gets wrapped to the next line automatically but the textarea is not getting scrolled accordingly. TextArea must scroll properly so as to make the last line visible to the user.

      This is noticed only on XToolkit and not on Motif / Win32. Reproducible with Mustang-b11 on Solaris9 with XToolkit.

      I have attached a sample test. Execute the sample test. You would see a frame with a text area and a button. Click on the button repeatedly. Button's caption will be appended to the textarea. When reaching the last visible line, press the button slowly. When you notice closely, the caption 'Click Me' will be split and 'Me' alone will be wrapped to the next line. But 'Me' will be hidden as the text area does not scroll in response to this word wrap. (subsequent clicks will make the textarea scroll properly until another word-wrap).
      ###@###.### 2004-11-08 13:45:37 GMT

            osemenovsunw Oleg Semenov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: