Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Program Code

Q1. Write a program using JPasswordField to set the password character as ‘#’ instead of ‘*’
Source Code:

Output:
Exercise

Q1. Write a program using JPasswordField and JTextField to demonstrate the use of user
authentication

Source Code:
Output:
Q2. Write a program using JTextField to perform the addition of two numbers

Source Code-
Output:
Q3. Write a program using JPasswordField to accept password from user and if the length is less
than characters then error message should be displayed “Password length must be >6
characters”

Source Code:
Output:

You might also like