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

TextArea class has a limit on the size of strings loaded into it

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.1
    • client-libs
    • None
    • x86
    • windows_95

      Name: sg39081 Date: 08/14/97

      I'm using instances of TextArea to display ASCII files. I find
      that when I load a file of 90K size into a TextArea instance
      with ' TextArea.setText(String)' the method call completes
      successfully but no text is displayed. The TextArea
      instance continues to appear as though nothing is loaded.

      If instead of using 'setText' you use -
      setText(""); append(String);
      then this time a fraction of the 90k string is displayed and can
      be scrolled through as normal. However the other fraction
      is ignored and is not viewable.
      It appears the original String is truncated
      at an arbitrary point when it is appended.
       It seems that TextArea has
      some internal limit on the amount of text that can be loaded
      into it. If this is the case then I'd recommend it be documented so that this
      limitation can be worked around.

      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: