TextField class does not show text after CR on Windows

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: 7u6
    • Component/s: client-libs
    • generic
    • windows

      Environment:
      JDK: build 1.7.0_06-ea-fastdebug-b20
      OS: Windows 7

      Steps to reproduce:

      Run the code:
      ------------------------------------
      import java.awt.*;

      public class TextTest {


          public static void main(String[] args) {
              Frame frame = new Frame();
              frame.setSize(300, 300);
              frame.add(new TextField("BeforeCR\nAfterCR"));
              frame.setVisible(true);
          }
      }
      ------------------------------------

      The setted text for the TextField is "BeforeCR\nAfterCR".
      However the Textfield shows only "BeforeCR" text and does not show "AfterCR".

            Assignee:
            Ambarish Rapte
            Reporter:
            Alexandr Scherbatiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: