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

fp.bugs 3169 TextArea(int, int) doesn't display entire last row

    XMLWordPrintable

Details

    • sparc
    • solaris_2.5

    Description

      >From: Garth Allen Dickie <###@###.###>
      This does not look like form output to me.


      Hi, I am using the JDK beta 2 for Solaris 2.4. When I
      construct a TextArea component with rows=n, only n-1 rows
      of text are visible. If I create TextArea component with
      rows=1, then only part of the row is visible.

      Regards,
      Garth A. Dickie
      _________
      <Jim Hagen> I've constructed the example below to demostrate this.
      mport java.awt.*;

      public class T3169 extends Frame
        {
        Panel panel;
        TextArea t;

        int windowWidth = 200;
        int windowHeight = 150;

        public T3169(String args[])
          {
          super("Bug Report 3169");

          panel = new Panel();
          t = new TextArea("This Text is not fully displayed", 1,15);
          panel.add(t);
          add("South", panel);

          resize(windowWidth, windowHeight);
          pack();
          show();
          }


        public static void main(String args[])
          {
          new T3169(args);
          }
        }

      Attachments

        Issue Links

          Activity

            People

              amfowler Anne Fowler (Inactive)
              bhagen Benjamin Hagen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: