Advanced Java Practical 12
Advanced Java Practical 12
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: