II. Write a class named GUITest which has the following: 1- Main method. This method implements the Graphical User Interface shown in Figure 1 below. This GUI works as follows: The user enters the count and sum inside the proper text fields, then clicks the "compute average" button to compute the average and display the result in the proper text field. Clicking the "Exit" button ends the program execution. 2- You must implement the necessary ActionListener classes (inner classes) for the two buttons, and implement the necessary code to register the listener objects to the buttons. Average of numbers Enter the count: Enter the sum: average: Figure 1: Compute Average Exit
II. Write a class named GUITest which has the following: 1- Main method. This method implements the Graphical User Interface shown in Figure 1 below. This GUI works as follows: The user enters the count and sum inside the proper text fields, then clicks the "compute average" button to compute the average and display the result in the proper text field. Clicking the "Exit" button ends the program execution. 2- You must implement the necessary ActionListener classes (inner classes) for the two buttons, and implement the necessary code to register the listener objects to the buttons. Average of numbers Enter the count: Enter the sum: average: Figure 1: Compute Average Exit
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
Related questions
Question
![II.
Write a class named GUITest which has the following:
1- Main method. This method implements the Graphical User Interface
shown in Figure 1 below. This GUI works as follows: The user
enters the count and sum inside the proper text fields, then clicks the
"compute average" button to compute the average and display the
result in the proper text field. Clicking the "Exit" button ends the
program execution.
2- You must implement the necessary ActionListener classes (inner
classes) for the two buttons, and implement the necessary code to
register the listener objects to the buttons.
Average of numbers
Enter the count:
Enter the sum:
average:
Figure 1:
Compute Average
Exit](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F7834dedc-e17a-45e9-a75c-ec6c6af3ad23%2Fae7c0d4d-ee1a-4ed9-8398-412086688b8f%2Fe3behou_processed.png&w=3840&q=75)
Transcribed Image Text:II.
Write a class named GUITest which has the following:
1- Main method. This method implements the Graphical User Interface
shown in Figure 1 below. This GUI works as follows: The user
enters the count and sum inside the proper text fields, then clicks the
"compute average" button to compute the average and display the
result in the proper text field. Clicking the "Exit" button ends the
program execution.
2- You must implement the necessary ActionListener classes (inner
classes) for the two buttons, and implement the necessary code to
register the listener objects to the buttons.
Average of numbers
Enter the count:
Enter the sum:
average:
Figure 1:
Compute Average
Exit
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT