A simple yet elegant calculator application developed in Java using Swing. This project demonstrates basic calculator functionalities and a clean user interface.
- Basic Arithmetic Operations: Addition, subtraction, multiplication, and division.
- Square Root Calculation: Computes the square root of a number.
- Backspace Functionality: Allows users to delete the last digit.
- Clear Functionality: Clears the current input and resets the calculator.
- Responsive Design: Adjusts button sizes and layout for better usability.
-
Clone the Repository:
git clone https://github.com/rajtilak-2020/Java_Based_Calculator.git
- Basic Operations: Click the number buttons to input numbers, and then use the operation buttons (+, -, *, /) to perform calculations.
- Square Root: Click the √ button to compute the square root of the displayed number.
- Clear: Click C to clear the display and reset the calculator.
- Backspace: Click ← to delete the last digit.
- Equals: Click = to compute the result of the current operation.
- Shutdown: Click ▲ to close the application.
The project was developed using Java Swing for the graphical user interface. The layout is created using GridLayout, and custom button borders are implemented using a RoundedBorder class.
- Java Development Kit (JDK) 8 or higher.
- No external dependencies required.
Java Swing for the graphical user interface. Fonts and colors were chosen for better readability and aesthetics.