Skip to content

This Java Temperature Converter uses 'Swing' to provide a simple UI for converting between Celsius, Kelvin, and Fahrenheit with formatted results and error handling.

Notifications You must be signed in to change notification settings

MythicalSHUB/Java-Temperature-Converter-with-UI-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Temperature Converter UI

GUI

Overview

A simple Java Swing GUI application that converts temperatures between Celsius, Kelvin, and Fahrenheit with intuitive user interaction.

Features

  • User-Friendly Interface: Built with JFrame, JPanel, JLabel, JButton, and JComboBox.
  • 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.

How to Use

  1. Enter a temperature value.
  2. Select the source unit (Celsius, Kelvin, or Fahrenheit).
  3. Click "Convert" or press Enter to see the results.
  4. Click "Clear" to reset inputs.

Installation & Execution

  1. Ensure Java (JDK) is installed.
  2. Clone or download the repository.
  3. Compile and run:
    javac TemperatureConverterUI.java
    java TemperatureConverterUI

About

This Java Temperature Converter uses 'Swing' to provide a simple UI for converting between Celsius, Kelvin, and Fahrenheit with formatted results and error handling.

Topics

Resources

Stars

Watchers

Forks

Languages