|
SWING TEXTFIELDS
A text field is a
basic text control that lets the user enter a small amount of
text. The class JtextField is used when creating a textfield.
There are many other methods associated with textfields. When
the user indicates that text entry is complete (usually by pressing
Enter), the text field fires an action event. If you need to obtain
more than one line of input from the user, you should use a text
area instead.
textField = new JTextField(20);
textField.addActionListener(this);
Note: Java implementation at right not complete!
|
|