JDK-4082558 : TextArea String Limit - Resubmit
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.4
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-09-29
  • Updated: 1998-01-23
  • Resolved: 1998-01-23
Related Reports
Duplicate :  
Description
Name: paC48320			Date: 09/29/97

Text stops printing around line 250.

//Begin Code - TextAreaTest.java
import java.awt.*;

class TextAreaTest{
	public static void main(String argv[]){
		Frame fr = new Frame();
		TextArea ta = new TextArea();
		fr.add(ta);
		fr.show();
		fr.setSize(350, 350);
		ta.setEditable(false);
		for(int i = 0; i < 650 ; i++)
			ta.append("Line "+i+".  This a long line test of the TextArea Component.  Making the line as long as possible.....................\r\n");
		ta.append("Finished");
	}
}
//End Code
======================================================================

Comments
EVALUATION There is a limitation on the amount of text a Win95 edit window can hold. Microsoft has set this limit at 32K, minus some overhead. Attempts to load more than 32K into a text area can produce strange behavior, although it should be possible to load in up to 64K if the TextArea is in read-only mode. A Work-around would be to use the Java-based text components supplied with Swing. eric.hawkes@eng 1998-01-23
23-01-1998