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

TextField class does not show text after CR on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • 7u6
    • 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".

            arapte Ambarish Rapte
            alexsch Alexandr Scherbatiy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: