--- old/src/java.desktop/share/classes/java/awt/TextField.java 2016-05-12 12:07:16.666486390 +0530 +++ new/src/java.desktop/share/classes/java/awt/TextField.java 2016-05-12 12:07:16.362486390 +0530 @@ -36,6 +36,8 @@ /** * A {@code TextField} object is a text component * that allows for the editing of a single line of text. + * If input text contains new line character, then + * {@code TextField} replaces it by space character. *

* For example, the following image depicts a frame with four * text fields of varying widths. Two of these text fields