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. Use the following methods and classes in creating the program:

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
2. 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.
3. 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
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 Submit button in the INPUT frame.
This class should be within the public class EventDriven
extends JFrame and should contain the actions that would
JFrame
public EventDriven
class btnSubmit implements
ActionListener
class btnClearAll implements
ActionListener
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.
This will serve as the main method of the program.
class btnOkay implements
ActionListener
public static void main (String] args)
Transcribed Image Text:2. 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. 3. 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 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 Submit button in the INPUT frame. This class should be within the public class EventDriven extends JFrame and should contain the actions that would JFrame public EventDriven class btnSubmit implements ActionListener class btnClearAll implements ActionListener 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. This will serve as the main method of the program. class btnOkay implements ActionListener public static void main (String] args)
INPUT
First Name:
Juan Felipe
Last Name:
OUTPUT
Dela Cruz
Middle Name:
First Name:
Juan Felipe
Last Name:
Dela Cruz
Reyes
Middle Name: Reyes
Mobile No.:
Mobile Number:
12345678901
Email Add:
juan.delacruz@gmail.com
12345678901
Email Address:
juan.delacruz@gmail.com
Submit
Clear All
окау
Figure 2. After clicking the submit button, the program should generate the output window (image
on the right) and disable the submit button (image on the left).
Note: Clicking the Okay and Clear All buttons will refresh the program and generate the image on the
left under Figure 1.
7. Use your personal information in filling out the input window. Screenshot your code and output.
Transcribed Image Text:INPUT First Name: Juan Felipe Last Name: OUTPUT Dela Cruz Middle Name: First Name: Juan Felipe Last Name: Dela Cruz Reyes Middle Name: Reyes Mobile No.: Mobile Number: 12345678901 Email Add: juan.delacruz@gmail.com 12345678901 Email Address: juan.delacruz@gmail.com Submit Clear All окау Figure 2. After clicking the submit button, the program should generate the output window (image on the right) and disable the submit button (image on the left). Note: Clicking the Okay and Clear All buttons will refresh the program and generate the image on the left under Figure 1. 7. Use your personal information in filling out the input window. Screenshot your code and output.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 6 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education