< prev index next >

src/java.desktop/share/classes/java/awt/TextField.java

Print this page

        

@@ -34,10 +34,12 @@
 
 
 /**
  * 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.
  * <p>
  * For example, the following image depicts a frame with four
  * text fields of varying widths. Two of these text fields
  * display the predefined text {@code "Hello"}.
  * <p>
< prev index next >