Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Gren-95/java-gui-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Java GUI Calculator

A comprehensive calculator application built with Java featuring multiple calculation modes and modern UI design.

๐Ÿš€ Main Features

๐Ÿงฎ Basic Calculator

  • Standard arithmetic operations (+, -, ร—, รท)
  • Decimal number support
  • Clear functions (C, CE, Backspace)
  • Full keyboard support
  • Error handling for division by zero

๐Ÿ”ฌ Scientific Calculator

  • Trigonometric functions (sin, cos, tan)
  • Logarithmic functions (log, ln)
  • Power functions (xยฒ, xยณ, x^y)
  • Square root
  • Degree/radian mode switching

๐Ÿ“Š Graphing Calculator

  • 2D function plotting (y = xยฒ, y = sin(x), etc.)
  • Interactive zoom and pan controls
  • Multiple function display
  • Export graphs as PNG images
  • Customizable axis ranges

๐Ÿ’ป Programmer Calculator

  • Number system conversion (DEC, HEX, BIN, OCT)
  • Bitwise operations (AND, OR, XOR, NOT)
  • Bit shifting (<<, >>)
  • Visual bit display
  • 8, 16, 32, 64-bit support

๐Ÿ’ฐ Currency Converter

  • 20+ world currencies
  • Real-time exchange rates
  • Historical rate lookup
  • Offline mode with cached rates
  • Favorites and conversion history

๐Ÿ“š Calculation History

  • Store recent calculations
  • Click to replay any calculation
  • Clear history option

๐ŸŽจ UI Features

  • Icon-based navigation with visual feedback
  • Active tab indicators (yellow highlight)
  • Hover effects and smooth animations
  • Universal keypad works in all text fields
  • Responsive layout adapts to open panels

๐Ÿ“‹ Requirements

  • Java 8 or higher
  • Internet connection (for currency converter)

๐Ÿš€ Getting Started

Compile

javac Calculator.java

Run

java Calculator

Usage

  1. Use number buttons or keyboard for input
  2. Click operators for calculations
  3. Press "=" or Enter to calculate
  4. Use toggle buttons to switch between modes:
    • ๐Ÿ•’ History
    • ฦ’ Scientific
    • ๐Ÿ“Š Graph
    • </> Programmer
    • ๐Ÿ’ฐ Currency

๐ŸŽฏ Navigation

  • Toggle buttons at the top switch between calculator modes
  • Active tabs are highlighted in yellow
  • Hover effects provide visual feedback
  • All text fields accept input from the calculator keypad

Built with Java Swing

About

A comprehensive calculator application built with Java featuring multiple calculation modes and modern UI design.

Resources

Stars

Watchers

Forks

Contributors

Languages