Example usage for Java java.awt TextField fields, constructors, methods, implement or subclass
The text is from its open source code.
TextField(String text) Constructs a new text field initialized with the specified text. | |
TextField(int columns) Constructs a new empty text field with the specified number of columns. | |
TextField(String text, int columns) Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns. | |
TextField() Constructs a new text field. |
void | addKeyListener(KeyListener l) Adds the specified key listener to receive key events from this component. |
Dimension | getPreferredSize() Gets the preferred size of this text field. |
String | getText() Returns the text that is presented by this text component. |
void | setBackground(Color c) Sets the background color of this text component. |
void | setBounds(int x, int y, int width, int height) Moves and resizes this component. |
void | setEditable(boolean b) Sets the flag that determines whether or not this text component is editable. |
void | setLocation(int x, int y) Moves this component to a new location. |
void | setText(String t) Sets the text that is presented by this text component to be the specified text. |
void | validate() Validates this component. |