Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Design and create a graphical (GUI) application that allows the user to choose different shape for displaying its area and perimeter. Three choices: 1. Circle-enter
Design and create a graphical (GUI) application that allows the user to choose different shape for displaying its area and perimeter. Three choices: 1. Circle-enter the radius value 2. Rectangle: enter the width and height value:s 3. Square: enter each side value Requirements 1. Give the user at least three choices or more options for different shape they want to display its area and perimeter as well as the information 2. Setup the title bar as: GUI Application 3. All result values must be un-editable for the user. Also, the area and perimeter values must be displayed with two decimal places. 4. You must use the Circle, Rectangle, and Square classes you have created from Assignment 1 to call each getArea) and getPeriemter0 method to display its area and perimeter as well as call getName) method to display the information about the shape with the value. 5. Disable some textfields if the shape does not be applied. For example: For Circle shape, the program will be disable for width, height and side textfields. 6. Event handles for any GUI component 7. Exception handling if the user enters non-numeric value The interface is similar to the following figure: (or design your own interface) GUI Application Pick up one shape: CIRCLE Input Data: radius: 20.15 width: height: side: Result: Shape is: [Circle) radius Area is: Perimeter is: 126.61 20.15 1275.56 Get Clear Exit
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started