creation: 6/28/99; revised 01/27/00 (using AWT); major revision: 01/10/02 (using Swing)
This chapter introduces Swing text fields and labels. They will be used in a simple Swing program.
JTextField
Swing component.setText()
and getText() methods of JTextField.JLabel
GUI Component.ActionListener
for a JTextField's event.setEditable()
method of JTextField.