
JPasswordField
Package: javax.swing
Description: A single-line text field user interface component that allows
users to enter text, such as a password, without the text being displayed.
When a user presses the Enter key with the cursor in the field, an Action-
Event is fired.
Constructor
JPasswordField( int numberColumns )
constructs an empty password field with the specified number of
columns.
Useful Methods of the JPasswordField Class
Return value Method name and argument list
void addActionListener( ActionListener handler )
registers an event handler for this password field.This method is
inherited from the JTextField class.
char [ ] getPassword( )
returns ...