Create a login screen for a program. Your program will authenticate a user and tell them if their login is accepted or not. Your program should be able to accept multiple users from a Text File. There is a
JPasswordField you could use for the password. If you wish, you may use a
JPasswordField txtPassword = new JPasswordField( );
JPasswordField functions just like a
JTextField only hiding the characters. To get the text from the
JPasswordField, you code...
String password = txtPassword.getText();