A simple Java Swing GUI application that converts temperatures between Celsius, Kelvin, and Fahrenheit with intuitive user interaction.
- User-Friendly Interface: Built with
JFrame
,JPanel
,JLabel
,JButton
, andJComboBox
. - Efficient Conversion Logic: Supports conversions between all three temperature scales.
- Event Handling: Supports both button clicks and the "Enter" key for input.
- Error Handling: Displays alerts for invalid input.
- Formatted Output: Uses
DecimalFormat
for clean results.
- Enter a temperature value.
- Select the source unit (Celsius, Kelvin, or Fahrenheit).
- Click "Convert" or press Enter to see the results.
- Click "Clear" to reset inputs.
- Ensure Java (JDK) is installed.
- Clone or download the repository.
- Compile and run:
javac TemperatureConverterUI.java java TemperatureConverterUI