Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

Subtract the polynomials. (-x+x-5) - (x-x + 5)

Answered: 1 week ago