Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a GUI based program to check the username and password entered by a user. For the purpose of this program, initialize a username
Write a GUI based program to check the username and password entered by a user. For the purpose of this program, initialize a username and password to whatever values you wish to use. The program will display a login window similar to Figure 1. The user should be able to enter the username and password in these textboxes. Once the submit button is pressed, the program needs to check the entered username and password against the ones that it initialized. The program then displays the confirmation message "Valid credentials" if the user username and password match, otherwise it should display "Invalid credentials". The username and password textboxes should be cleared after the submit button is pressed. (15 marks) Username: Password: Fig 1: Login window Username: Login Username: abc@xyz.com Password: abc123 Password: Submit Fig 3: Valid credentials Login Fig 2: Username and password entered Submit Login Submit Valid credentials
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started