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

Regression: line should not wrap around into multi lines in TextArea in WIN.

XMLWordPrintable

    • beta
    • x86
    • windows_98, windows_2000
    • Verified

      JDK : 1.4.2-b02-> b06 ( passed with b01 and JDK1.4.1)
      Platform[s] : Windows 98 and 2K were tested.

      How to reproduce:
      ====================

       1) run the sample java program below.
      -------- START---------------------
      import java.awt.*;
      import java.awt.TextArea.*;

      public class awtTextArea
      {

        public static void main (String[] args)
        {

          final TextArea textArea = new TextArea("long long long long long long long line...........",3,4);
          Frame win = new Frame("Font Test");
          win.add(textArea);
          win.setSize(new Dimension(100,100));
          win.show();

        }

      }

      -------- END----------------------

      Test output:
      =============
        The output should have a TextArea with one line showing "long long long long...". However, starting b02 -> b06, the line will wrap around into multiple lines base on the size of the windows.


      Specific Machine Info:
      =====================
      Windows 2000) tq-win2k-dev




      ###@###.### 2002-11-08

            kdmsunw Kdm Kdm (Inactive)
            tacheung Tak Wing Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: