--- old/jdk/src/java.desktop/share/classes/java/awt/TextField.java 2015-09-18 17:00:24.801478999 +0530 +++ new/jdk/src/java.desktop/share/classes/java/awt/TextField.java 2015-09-18 17:00:24.477317000 +0530 @@ -36,6 +36,8 @@ /** * A TextField object is a text component * that allows for the editing of a single line of text. + * If the input text contains new line character, + * it will be replaced by a space character. *

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