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...


How to do this?


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

Extracted 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: [email protected] 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<br>Application of Event-Driven Programming<br>Objectives:<br>At the end of the exercise, the students should be able to:<br>Describe the event handling process; and<br>Incorporate events in a program.<br>Materials:<br>One (1) personal computer with a pre-installed Snipping Tool, Microsoft Word, latest version of<br>NetBeans IDE and Java Development Kit (JDK) 8<br>Internet connection<br>Instructions:<br>1. Create a new document in Microsoft Word with the name format 05LAB_LastName_FirstName (ex.<br>05LAB_Reyes_Mika). This will serve as your answer sheet and will be collected by your instructor.<br>2. Launch NetBeans. Click File > New Project > Java Application > Next. The project name should be<br>EventDriven_(LastName) (ex. EventDriven_Reyes). Then, click Finish.<br>3. Create a simple program that includes JFrame, JPanel, JLabel, JFields, JTextArea, and JButton. The<br>program should ask the user for the following input:<br>First name<br>Last name<br>Middle name<br>Mobile number<br>E-mail address.<br>4. Use the following methods and classes in creating the program:<br>public class EventDriven extends<br>This should be the main class of the program and should<br>contain the list of components and its corresponding<br>declaration.<br>This method should include the formatting of components in<br>JFrame<br>public EventDriven<br>the INPUT frame.<br>class btnSubmit implements<br>ActionListener<br>This class should be within the public class EventDriven<br>extends JFrame and should contain the actions that would<br>be performed by the Submit button in the INPUT frame.<br>This class should be within the public class EventDriven<br>extends JFrame and should contain the actions that would<br>be performed by the Clear All button in the INPUT frame.<br>This class should be within the public class EventDriven<br>extends JFrame and should contain the actions that would<br>be performed by the Okay button in the OUTPUT frame.<br>class btnClearAll implements<br>ActionListener<br>class btnOkay implements<br>ActionListener<br>| public static void main (String[] args) This will serve as the main method of the program.<br>

Extracted 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.
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here