Skip to content

A basic Java Swing calculator using stack-based logic for learning GUI development.

Notifications You must be signed in to change notification settings

Ritesh-9004/BasicCalculator-JavaSwing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Swing Calculator

⚠️ NOTE: THIS IS A LEARNING PROJECT AND NOT A PRODUCTION-READY SOLUTION.


A simple calculator built using Java Swing with a clean GUI. This calculator performs basic arithmetic operations (addition, subtraction, multiplication, division) and uses Java's Stack for operator handling.


🖥️ Features

  • Basic arithmetic operations: +, -, *, /
  • Stack-based expression handling
  • Java Swing GUI with number and operator buttons
  • Supports decimal inputs
  • Displays result with smart formatting (rounded or decimal)
  • "C" button to clear the screen and reset memory

Screenshot

UI Text UI
UI UI2

🛠️ Requirements

  • Java JDK 1.7 or later
  • NetBeans IDE 8.0.2 (or compatible IDE with JDK 1.7 support)

🚀 How to Run

  1. Clone the repository
    git clone https://github.com/Ritesh-9004/BasicCalculator-JavaSwing.git
    cd JavaSwingCalculator

About

A basic Java Swing calculator using stack-based logic for learning GUI development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages