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

Problem with text areas larger then 32768 pixels

XMLWordPrintable

    • sparc
    • solaris_2.5.1



      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

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

            rkhansunw Robi Khan (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: