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:

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 2GZ
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT