Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rajtilak-2020/java_calculator

A simple Java based calculator.
https://github.com/rajtilak-2020/java_calculator

Last synced: 13 days ago
JSON representation

A simple Java based calculator.

Awesome Lists containing this project

README

        

# Java_Based_Calculator
A simple yet elegant calculator application developed in Java using Swing. This project demonstrates basic calculator functionalities and a clean user interface.

## Features

- **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.

## Installation

1. **Clone the Repository**:

```bash
git clone https://github.com/rajtilak-2020/Java_Based_Calculator.git
## Usage
- **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.

## Development
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.

## Requirements
- Java Development Kit (JDK) 8 or higher.

## Dependencies
- No external dependencies required.

## Acknowledgements
Java Swing for the graphical user interface.
Fonts and colors were chosen for better readability and aesthetics.