JDK-4071955 : TextArea class has a limit on the size of strings loaded into it
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-08-14
  • Updated: 1998-01-23
  • Resolved: 1998-01-23
Related Reports
Duplicate :  
Description
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.

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