< prev index next >
src/java.desktop/share/classes/java/awt/TextField.java
Print this page
*** 196,206 ****
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public TextField(String text, int columns) throws HeadlessException {
! super(text);
this.columns = (columns >= 0) ? columns : 0;
}
/**
* Construct a name for this component. Called by getName() when the
--- 196,206 ----
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public TextField(String text, int columns) throws HeadlessException {
! super(text, true);
this.columns = (columns >= 0) ? columns : 0;
}
/**
* Construct a name for this component. Called by getName() when the
< prev index next >