Urgent i need you to debug or modify my code. I am using java programming the see the code below.Attached pic below is the expected output.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Urgent i need you to debug or modify my code. I am using java programming the see the code below.Attached pic below is the expected output.

 

import java.awt.GridLayout;
import java.awt.*;
import javax.swing.*;
public class Trial {
    public static void main(String[] args) {
        JFrame frm = new JFrame ("PASSWORD ENTER");
        JLabel lb1Name = new JLabel("USERNAME: ");
        JPasswordField value = new JPasswordField();
        JLabel lb2Pass = new JLabel ("PASSWORD: ");
        JTextField txtName = new JTextField(20);
        lb1Name.setFont(new Font("consolas",Font.BOLD,20));
        txtName.setFont(new Font("consolas",Font.PLAIN,20));
        txtName.setHorizontalAlignment(JTextField.CENTER);
        lb2Pass.setFont(new Font("consolas",Font.PLAIN,20));
        lb1Name.setBounds(50,100,80,30);
        lb2Pass.setBounds(50,150,80,30);
        frm.setLayout(new GridLayout(1,2,5,5));
        frm.add(lb1Name);
        frm.add(txtName);
        frm.setSize(500,100);
        frm.setVisible(true);
        frm.add(lb2Pass);
        frm.add(value);
        frm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frm.setLocationRelativeTo(null);
      }

b. Create a JAVA program using this output as your reference.
Sample output.
1.
PASSWORD ENTER
USERNAME:
enz
PASSWORD:
$$$$$$$$$
2.
PASSWORD ENTER
USERNAME:
Lorena
PASSWORD:
**
Transcribed Image Text:b. Create a JAVA program using this output as your reference. Sample output. 1. PASSWORD ENTER USERNAME: enz PASSWORD: $$$$$$$$$ 2. PASSWORD ENTER USERNAME: Lorena PASSWORD: **
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY