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

TextField class does not show text after CR on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 7u6
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      windows

      Description

      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".

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: