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. Two (2) frames will be used in this program: OUTPUT and INPUT. The following conditions must be satisfied by the program.
Types of Loop
Loops are the elements of programming in which a part of code is repeated a particular number of times. Loop executes the series of statements many times till the conditional statement becomes false.
Loops
Any task which is repeated more than one time is called a loop. Basically, loops can be divided into three types as while, do-while and for loop. There are so many programming languages like C, C++, JAVA, PYTHON, and many more where looping statements can be used for repetitive execution.
While Loop
Loop is a feature in the programming language. It helps us to execute a set of instructions regularly. The block of code executes until some conditions provided within that Loop are true.
![4 INPUT
S INPUT
4 INPUT
First Name:
First Name:
First Name:
Juan Felipe
Juan Felipe
Last Name:
Last Name:
Last Name:
E OUTPUT
Dela Cruz
Dela Cruz
Middle Name:
Juan Felipe
Dela Cruz
Middle Name:
Middle Name:
First Name:
Last Name:
Reyes
Reyes
Middle Name: Reyes
Mobile Number:
Mobile Number:
Mobile Number:
Mobile No.:
12345678901
Email Add:
juan.delacruz@gmail.com
|12345678901
12345678901
Email Address:
Email Address:
Email Address:
juan.delacruz@gmail.com
juan.delacruz@gmail.com
Submit
Clear All
Submit
Clear All
Submit
Clear All
Okay](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F32509d8f-3eb8-412a-b22b-8919afa8e523%2Fae38ca06-a12f-40d8-a54b-719c5f32eff8%2Frj47k41_processed.png&w=3840&q=75)
![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.
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.
Note: Clicking the Okay and Clear All buttons will refresh the program and generate the image on the
left under Figure 1.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F32509d8f-3eb8-412a-b22b-8919afa8e523%2Fae38ca06-a12f-40d8-a54b-719c5f32eff8%2Ffybuv82_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)