This repository contains a Java Swing application that provides an easy-to-use interface for converting various units, including length, temperature, and currency.
The application includes the following conversion panels:
- Length Converter
- Temperature Converter
- Currency Converter
The length converter allows users to convert between different length units, including:
- Millimeters
- Centimeters
- Meters
- Kilometers
- Inches
- Feet
- Yards
- Miles
Users can input a length value and select the input and output units to perform the conversion.
The temperature converter allows users to convert between different temperature units, including:
- Celsius
- Fahrenheit
- Kelvin
Users can input a temperature value and select the input and output units to perform the conversion.
The currency converter allows users to convert between different currencies, including:
- US Dollar
- Mexican Peso
- British Pound
- Euro
- Japanese Yen
The application fetches the latest currency exchange rates from the Exchange Rates API. Users can update the exchange rates manually by clicking the "Update Rates" button.
Users can input an amount and select the input and output currencies to perform the conversion.
- Java JDK 8 or later
- Clone the repository:
git clone https://github.com/username/unit-converter.git
-
Open the project in your favorite Java IDE (e.g., IntelliJ IDEA, Eclipse).
-
Compile and run the Main class.
- Run the application.
- Use the tabs at the top to navigate between the different conversion panels.
- Input the value you want to convert and select the input and output units/currencies.
- Click the "Convert" button to perform the conversion.
- The result will be displayed in the output field.
Contributions are welcome! Please feel free to submit a pull request or open an issue to report bugs or request new features.
This project is released under the MIT License.