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

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
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
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
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Introduction to Interface
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT