Write a GUI based program to check the username and password entered by a user. For...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
A small consulting company wants to make the switch to QuickBooks Online. All of their expenses are paid at the time they are incurred, so there is no need to track bills in the system. There is only...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
A 100-m-long conductor of uniform cross section has a voltage drop of 4 V between its ends. If the density of the current flowing through it is 1.4 x 106 (A/m2), identify the material of the...
-
Perform the same computation as in Sec. 12.2, but for the truss depicted inFigure. 500 100 45 30 45 60
-
Which of the following revenues would typically not be classified as a general revenue on the Statement of Activities? a. Property taxes. b. Sales taxes. c. Unrestricted grant. d. Parking fines. e....
-
Amanda Forbes was hired as a nail technician by Showmann, Inc., in 2011. In 2017, Forbes attended a work-related holiday party where Showmann distributed raffle tickets to employees. One of the...
-
(Permanent and Temporary Differences, One Rate) The accounting records of Shinault Inc. show the following data for 2010. 1. Life insurance expense on officers was $9,000. 2. Equipment was acquired...
-
Alberto plans to apply for a car loan. When should he check his credit report? Group of answer choices 1 month before applying for the loan Around 3 to 6 months before applying for the loan 1 week...
-
Exhibit 13.6 presents selected hypothetical data from projected financial statements for Steak 'n Shake for Year +1 to Year +11. The amounts for Year +11 reflect a long-term growth assumption of 3%....
-
Gary King has been working on Waterway Paints' cash budget for the coming year. Based on his projections for March, the beginnin cash balance will be $41,700; cash collections will be $590,000; and...
-
A circus performer stretches a tightrope between two towers. He strikes one end of the rope and sends a wave along it toward the other tower. He notes that it takes the wave 0.675 s to reach the...
-
Project managers and general managers are often used synonymously. In fact, they may appear to be doing similar work, but their roles and responsibilities are drastically different. Discuss 3 key...
-
Ernst Mller leased a car with a net capitalized value of $34,700 + GST. Ernst lives in province that doesn't have a provincial sales tax. Ernst has $7,350 available to use as a down payment towards...
-
A cantilever beam's end rests on the middle of a simply supported beam, as shown in the figure below. Both beams have length L and bending rigidity EI. Determine the deflection at A and the reactions...
-
Consider the function: fox) = 6(-3x+48) +* Step 2 of 2: Use the First Derivative Test to find any local extrema. Enter any local extrema as an ordered pair. Answer Separate multiple answers with...
-
Fill in each blank so that the resulting statement is true. A solution to a system of linear equations in two variables is an ordered pair that__________ .
-
Write a program that reads a file and displays a histogram to show the occurrences of each letter in the file, as shown in Figure 16.40b. The file name is entered from a text field. Pressing the...
-
Write a program that prompts the user to enter three integers and display the integers in non-decreasing order.
-
Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to Chinese RMB. Prompt the user to enter 0 to convert from U.S. dollars to Chinese RMB and 1 to convert...
-
When translating Acceletrons fi nancial statements into US dollars, Redline is least likely to use an exchange rate of USD per SGD: A . 0.671. B . 0.588. C . 0.654.
-
Yus determination regarding Transaction 2 should be based on the currency of the: A . loan. B . bank. C . borrower.
-
In response to the boards fourth question, the balance sheet exposure (in C$ millions) would be closest to: A . 19. B . 148. C . 400.
Study smarter with the SolutionInn App