Skip to content

SnehalTanpure7/java-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ 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!

About

A simple Java Swing based desktop calculator performing basic arithmetic operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages