JDK-4126853 : Problem with text areas larger then 32768 pixels
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.4
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1998-04-08
  • Updated: 2000-03-28
  • Resolved: 2000-03-28
Related Reports
Duplicate :  
Relates :  
Description

Name: mf23781			Date: 04/08/98


The problem originally occured on swing and can be demonstrated
by loading a file with 3000 lines or more into the notepad example.
If you try to type on one of the lines near the bottom the screen
should be corrupted.

We then reproduced the error using an awt TextArea in a ScrollPane
using the following testcase

import java.awt.*;

public class nonswing extends Frame
{
    public nonswing()
    {
        ScrollPane sp = new ScrollPane();
        int numlines=3000;
        TextArea ta = new TextArea(numlines,80);
        for (int i=0; i<100; i++)
            ta.append("line "+i+"\n");
        sp.add(ta);
        add(sp);
    }

    public static void main(String[] args)
    {
        nonswing f = new nonswing();
        f.setSize(300,400);
        f.setVisible(true);
    }
}

We tried this on 1.2 but although the problem with swing seemed
to go away the problem with the awt did not.
Is it possible to put the 1.2 fix for the swing code into the awt code
and put both back into 1.1

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

Comments
EVALUATION 3/28/2000, kevin.ryan@eng -- since this is now being tracked via #4316821, am closing this as a dupe of #4316821. See also 4106806.
11-06-2004

WORK AROUND Name: mf23781 Date: 04/08/98 For the awt case you can let the TextArea handle the scrolling so that you never get the very large component. ======================================================================
11-06-2004