Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!