5. Two (2) frames will be used in this program: OUTPUT and INPUT. The following conditions must be satisfied by the program. Input Frame: Set the window name to INPUT. • The input frame should collect all the details listed on Step 2. It should contain Submit and Clear All buttons. When the Submit button is clicked, it should generate the output frame and disable the Submit button. • When the Clear All button is clicked, it should clear all the content that were entered by the user in the input frame, and close the output frame if it is open. Output Frame: Set the window name to OUTPUT. The output frame should display all the details that were entered by the user with the corresponding label. The output frame should contain an Okay button. When the Okay button is clicked, it should automatically close the output frame and clear the content of the input frame. 6. See Figures 1 and 2 below for the expected results. | INPUT | INPUT First Name: First Name: Juan Felipe Last Name: Last Name: Dela Cruz Middle Name: Middle Name: Reyes Mobile Number: Mobile Number: 12345678901 Email Address: Email Address: juan.delacruz@gmail.com Submit Clear All Submit Clear All Figure 1. L-R: Initial output of the program with the input window; text fields with sample input

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

How to do this?

5. Two (2) frames will be used in this program: OUTPUT and INPUT. The following conditions must be
satisfied by the program.
Input Frame:
Set the window name to INPUT.
• The input frame should collect all the details listed on Step 2.
It should contain Submit and Clear AIII buttons.
When the Submit button is clicked, it should generate the output frame and disable the
Submit button.
When the Clear All button is clicked, it should clear all the content that were entered
by the user in the input frame, and close the output frame if it is open.
Output Frame:
Set the window name to OUTPUT.
The output frame should display all the details that were entered by the user with the
corresponding label.
The output frame should contain an Okay button.
When the Okay button is clicked, it should automatically close the output frame and
clear the content of the input frame.
6. See Figures 1 and 2 below for the expected results.
| INPUT
INPUT
First Name:
First Name:
Juan Felipe
Last Name:
Last Name:
Dela Cruz
Middle Name:
Middle Name:
Reyes
Mobile Number:
Mobile Number:
12345678901
Email Address:
Email Address:
juan.delacruz@gmail.com
Submit
Clear All
Submit
Clear All
Figure 1. L-R: Initial output of the program with the input window; text fields with
sample input
Transcribed Image Text:5. Two (2) frames will be used in this program: OUTPUT and INPUT. The following conditions must be satisfied by the program. Input Frame: Set the window name to INPUT. • The input frame should collect all the details listed on Step 2. It should contain Submit and Clear AIII buttons. When the Submit button is clicked, it should generate the output frame and disable the Submit button. When the Clear All button is clicked, it should clear all the content that were entered by the user in the input frame, and close the output frame if it is open. Output Frame: Set the window name to OUTPUT. The output frame should display all the details that were entered by the user with the corresponding label. The output frame should contain an Okay button. When the Okay button is clicked, it should automatically close the output frame and clear the content of the input frame. 6. See Figures 1 and 2 below for the expected results. | INPUT INPUT First Name: First Name: Juan Felipe Last Name: Last Name: Dela Cruz Middle Name: Middle Name: Reyes Mobile Number: Mobile Number: 12345678901 Email Address: Email Address: juan.delacruz@gmail.com Submit Clear All Submit Clear All Figure 1. L-R: Initial output of the program with the input window; text fields with sample input
Task Performance
Application of Event-Driven Programming
Objectives:
At the end of the exercise, the students should be able to:
Describe the event handling process; and
Incorporate events in a program.
Materials:
One (1) personal computer with a pre-installed Snipping Tool, Microsoft Word, latest version of
NetBeans IDE and Java Development Kit (JDK) 8
Internet connection
Instructions:
1. Create a new document in Microsoft Word with the name format 05LAB_LastName_FirstName (ex.
05LAB_Reyes_Mika). This will serve as your answer sheet and will be collected by your instructor.
2. Launch NetBeans. Click File > New Project > Java Application > Next. The project name should be
EventDriven_(LastName) (ex. EventDriven_Reyes). Then, click Finish.
3. Create a simple program that includes JFrame, JPanel, JLabel, JFields, JTextArea, and JButton. The
program should ask the user for the following input:
First name
Last name
Middle name
Mobile number
E-mail address.
4. Use the following methods and classes in creating the program:
public class EventDriven extends
This should be the main class of the program and should
contain the list of components and its corresponding
declaration.
This method should include the formatting of components in
JFrame
public EventDriven
the INPUT frame.
class btnSubmit implements
ActionListener
This class should be within the public class EventDriven
extends JFrame and should contain the actions that would
be performed by the Submit button in the INPUT frame.
This class should be within the public class EventDriven
extends JFrame and should contain the actions that would
be performed by the Clear All button in the INPUT frame.
This class should be within the public class EventDriven
extends JFrame and should contain the actions that would
be performed by the Okay button in the OUTPUT frame.
class btnClearAll implements
ActionListener
class btnOkay implements
ActionListener
| public static void main (String[] args) This will serve as the main method of the program.
Transcribed Image Text:Task Performance Application of Event-Driven Programming Objectives: At the end of the exercise, the students should be able to: Describe the event handling process; and Incorporate events in a program. Materials: One (1) personal computer with a pre-installed Snipping Tool, Microsoft Word, latest version of NetBeans IDE and Java Development Kit (JDK) 8 Internet connection Instructions: 1. Create a new document in Microsoft Word with the name format 05LAB_LastName_FirstName (ex. 05LAB_Reyes_Mika). This will serve as your answer sheet and will be collected by your instructor. 2. Launch NetBeans. Click File > New Project > Java Application > Next. The project name should be EventDriven_(LastName) (ex. EventDriven_Reyes). Then, click Finish. 3. Create a simple program that includes JFrame, JPanel, JLabel, JFields, JTextArea, and JButton. The program should ask the user for the following input: First name Last name Middle name Mobile number E-mail address. 4. Use the following methods and classes in creating the program: public class EventDriven extends This should be the main class of the program and should contain the list of components and its corresponding declaration. This method should include the formatting of components in JFrame public EventDriven the INPUT frame. class btnSubmit implements ActionListener This class should be within the public class EventDriven extends JFrame and should contain the actions that would be performed by the Submit button in the INPUT frame. This class should be within the public class EventDriven extends JFrame and should contain the actions that would be performed by the Clear All button in the INPUT frame. This class should be within the public class EventDriven extends JFrame and should contain the actions that would be performed by the Okay button in the OUTPUT frame. class btnClearAll implements ActionListener class btnOkay implements ActionListener | public static void main (String[] args) This will serve as the main method of the program.
Expert Solution
steps

Step by step

Solved in 3 steps

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