Constructors
| Name | Description |
|---|---|
| TextField() | Constructs a new text field. |
| TextField(int) | Constructs a new empty TextField with the specified number of columns. |
| TextField(String) | Constructs a new text field initialized with the specified text. |
| TextField(String, int) | Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of characters. |
Methods
| Name | Description |
|---|---|
| addActionListener(ActionListener) | Adds the specified action listener to recieve action events from this text field. |
| addNotify() | Creates the TextField's peer. |
| echoCharIsSet() | Indicates whether or not this text field has a character set for echoing. |
| getColumns() | Gets the number of columns in this text field. |
| getEchoChar() | Gets the character that is to be used for echoing. |
| getMinimumSize() | Gets the minumum dimensions for this text field. |
| getMinimumSize(int) | Gets the minumum dimensions for a text field with the specified number of columns. |
| getPreferredSize() | Gets the preferred size of this text field. |
| getPreferredSize(int) | Gets the preferred size of this text field with the specified number of columns. |
| minimumSize() | Deprecated. |
| minimumSize(int) | Deprecated. |
| paramString() | Returns the parameter string representing the state of this text field. |
| preferredSize() | Deprecated. |
| preferredSize(int) | Deprecated. |
| processActionEvent(ActionEvent) | Processes action events occurring on this text field by dispatching them to any registered ActionListener objects. |
| processEvent(AWTEvent) | Processes events on this text field. |
| removeActionListener(ActionListener) | Removes the specified action listener so that it no longer receives action events from this text field. |
| setColumns(int) | Sets the number of columns in this text field. |
| setEchoChar(char) | Sets the echo character for this text field. |
| setEchoCharacter(char) | Deprecated. |