A simple calculator application built using Java AWT and Swing. The application provides basic arithmetic operations such as addition, subtraction, multiplication, and division.
Here's a screenshot of the calculator application:
- Basic arithmetic operations: Addition, Subtraction, Multiplication, and Division
- User-friendly graphical interface using Java AWT and Swing
- Real-time calculation and display of results
-
Clone the Repository
git clone https://github.com/yourusername/calculator-java-awt-swing.git
-
Navigate to the Project Directory
cd calculator-java-awt-swing
-
Compile the Java Files
Make sure you have JDK installed. Compile the Java files using the following command:
javac Calculator.java
-
Run the Application
After compiling, you can run the application with:
java Calculator
-
Open the Calculator Application
Run the application using the command mentioned in the "Run the Application" section.
-
Perform Calculations
- Use the number buttons to input numbers.
- Use the arithmetic operation buttons (+, -, *, /) to select the desired operation.
- Press the "=" button to calculate the result.
- Press the "C" button to clear the current input.
If you want to contribute to this project, feel free to fork the repository and submit a pull request with your improvements or bug fixes.
This project is licensed under the MIT License - see the LICENSE file for details.