Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A modern calculator GUI with number and operator buttons, styled with a blue "=" button.

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE.md
Notifications You must be signed in to change notification settings

anshumanjadiya1102/Java_Beauty_Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

16 Commits

Repository files navigation

🧮 Java Swing Calculator

Java
License
Platform

A modern and user-friendly calculator built with Java Swing.
Supports basic arithmetic, percentage, sign toggle, clear, backspace, and keyboard input.


✨ Features

  • ➕ ➖ ✖️ ➗ Basic arithmetic operations
  • 🧾 Decimal support
  • 🔙 Backspace & Clear (C)
  • 🔄 Toggle sign (±)
  • 📊 Percentage (%) support
  • ⌨️ Keyboard shortcuts
  • 🖥️ Cross-platform desktop app

Structure

📦 java-calculator
 ┣ 📜 Calculator.java # Main calculator code
 ┣ 📜 README.md # Project documentation

🧮 Java Beauty Calculator

A modern, GUI-based calculator built with Java Swing and BigDecimal for precision.
Supports arithmetic operations (+, , ×ばつ, ÷), percentages, sign toggle, and backspace.
Styled with a clean UI to give you a lightweight but beautiful desktop calculator.


✨ Features

  • 🎨 Sleek Swing-based GUI (not console)
  • 🔢 High-precision calculations using BigDecimal
  • ➕➖✖️➗ Basic arithmetic operations
  • % Percentage and ± sign toggle support
  • ⌫ Backspace for corrections
  • ⌨️ Full keyboard support (numbers, Enter, operators, Backspace, Esc)

🚀 Getting Started

1️⃣ Clone the repository

git clone https://github.com/anshumanjadiya1102/Java_Beauty_Calculator.git
cd Java_Beauty_Calculator

⚠️ Important: This is a GUI application.

  • It requires a graphical environment (Windows, macOS, or Linux desktop). -If you are on Linux server/WSL, you’ll need an X11 server (e.g. Xming, VcXsrv) or run with:
xvfb-run java Java_Beauty_Calculator

🎹 Keyboard Shortcuts

Key Action

0–9	Enter digits
.	Decimal point
+	Addition
-	Subtraction
*	Multiplication
/	Division
Enter	Equals (=)
Esc	Clear (C)
Backspace	Delete last digit
%	Percentage
±	Toggle sign

📦 Build a .jar

If you want to create a portable JAR file:

javac Java_Beauty_Calculator.java
jar cfe Calculator.jar Java_Beauty_Calculator *.class
java -jar Calculator.jar

Star History

Star History Chart

Thanks a lot

Thanks a lot for your love for Java_Beauty_Calculator

image22

This repository made me Developer of the day.

About

A modern calculator GUI with number and operator buttons, styled with a blue "=" button.

Topics

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /