![]() |
The Java Developers Almanac 1.4 |
|
e980. Creating a Password JTextField ComponentWhen the user hits RETURN, the text field fires an action event. JPasswordField textfield = new JPasswordField("Initial Text");
textfield.setEchoChar('#');
textfield.addActionListener(actionListener);
e981. Aligning the Text in a JTextField Component
© 2002 Addison-Wesley. |