Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.01 KB

File metadata and controls

58 lines (39 loc) · 1.01 KB

🧮 Java Calculator (Swing)

A simple desktop calculator application built using Java Swing and AWT. This project performs basic arithmetic operations with a graphical user interface.

🚀 Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (×)
  • Division (÷)
  • Decimal number support
  • Clear option
  • Exit option
  • Menu bar functionality
  • User-friendly GUI

🛠 Technologies Used

  • Java
  • Swing
  • AWT
  • Event Handling (ActionListener)

📂 Project Structure

java-calculator │ ├── calculator.java ├── README.md ├── .gitignore └── LICENSE

▶ How to Run

  1. Open the project in any Java IDE (VS Code )

  2. Compile the file:

    javac calculator.java

  3. Run the program:

    java calculator

👩‍💻 Author

Snehal Tanpure

📌 Future Improvements

  • Scientific calculator functions
  • Improved UI using GridLayout
  • Dark theme version
  • Better error handling (e.g., divide by zero handling)

⭐ If you like this project, feel free to give it a star!