A Java-based currency conversion application with a graphical user interface (GUI). The application allows users to convert between currencies and keeps a history of conversions.
- Currency Conversion: Convert between different currencies using real-time exchange rates.
- Conversion History: View a scrollable history of previous conversions.
- Dynamic Dropdowns: Select currencies from a dropdown menu populated with real-time data.
The Money Calculator project is a currency conversion tool built using Java and Swing for the GUI. It fetches real-time currency exchange rates and enables users to:
- Enter an amount and select source and target currencies to convert.
- See the converted amount displayed immediately.
- Maintain a scrollable history of all conversions for reference.
The application is divided into components, each responsible for specific tasks:
- Commands: Handles the execution and tracking of conversion actions.
- GUI: The graphical interface, including panels for user input and history display.
- Service Layer: Includes classes for fetching exchange rates and performing conversions.
- Configuration: Manages application settings such as default currencies.
├── src
│ ├── main
│ │ ├── java
│ │ │ ├── com.moneycalculator
│ │ │ │ ├── commands
│ │ │ │ │ ├── Command.java
│ │ │ │ │ ├── CommandHistory.java
│ │ │ │ │ ├── ExchangeCommand.java
│ │ │ │ ├── gui
│ │ │ │ │ ├── InputPanel.java
│ │ │ │ │ ├── HistoryPanel.java
│ │ │ │ │ ├── MainApp.java
│ │ │ │ ├── service
│ │ │ │ │ ├── CurrencyRateService.java
│ │ │ │ │ ├── MoneyConverter.java
│ │ │ │ ├── config
│ │ │ │ │ ├── ApplicationConfig.java
│ │ │ │ ├── impl
│ │ │ │ │ ├── CurrencyRateFetcher.java
│ │ │ │ ├── model
│ │ │ │ │ ├── Rate.java
│ ├── resources
│ ├── currencies.tsv
- Launch the application.
- Enter the amount to convert in the input field.
- Choose the source and target currencies from the dropdown menus.
- Click "Convert" to see the conversion result.
- Check the scrollable history panel on the left for previous conversions.
- Exchange rate fetching powered by
CurrencyRateService
. - GUI components designed using Java Swing.
Enjoy using the Money Calculator for accurate and quick currency conversions!