< prev index next >

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

Print this page

        

*** 34,43 **** --- 34,45 ---- /** * 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 >