The Shape Calculator is a Java-based application built using the Swing API that allows users to calculate various properties of 2D and 3D shapes. Whether you're interested in finding the area of a rectangle, the volume of a sphere, or the surface area of a cylinder, this application provides a user-friendly interface for all your geometric calculations.
-
2D Shapes:
- Rectangle
- Circle
- Triangle
- Polygon
-
3D Shapes:
- Sphere
- Cube
- Cylinder
- Cone
-
Interactive UI: Easy-to-use graphical interface built with Swing.
-
Instant Calculations: Get real-time results as you input dimensions.
-
Shape Selection: Choose from a list of shapes to calculate.
-
Validation: Input validation to ensure accurate calculations.
- Java Development Kit (JDK) 8 or higher
- IDE (Optional but recommended): IntelliJ IDEA, Eclipse, or NetBeans
git clone https://github.com/yourusername/shape-calculator.git
cd shape-calculator
'''
## Build and Run
1. **Compile the Application**: Open your terminal or command prompt in the project directory and compile the Java files.
```bash
javac -d bin src/*.java