Skip to content

Conversation

@adityaaa009
Copy link
Contributor

This code creates a simple GUI with a text field for input and two buttons for conversion. When you click the “To Celsius” button, it converts the temperature from Fahrenheit to Celsius. When you click the “To Fahrenheit” button, it converts the temperature from Celsius to Fahrenheit. Please note that this is a basic example and does not include error handling for non-numeric or out-of-range input. You may want to add those in a production environment.

This code creates a simple GUI with a text field for input and two buttons for conversion. When you click the “To Celsius” button, it converts the temperature from Fahrenheit to Celsius. When you click the “To Fahrenheit” button, it converts the temperature from Celsius to Fahrenheit. Please note that this is a basic example and does not include error handling for non-numeric or out-of-range input. You may want to add those in a production environment.
@Swarno-Coder
Copy link
Owner

Swarno-Coder commented Oct 2, 2023

@adityaaa009 First, mention the and want assignment request.

@Swarno-Coder Swarno-Coder requested a review from Copilot October 12, 2025 10:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR transforms a basic TemperatureConverter class into a functional GUI application using Java Swing. The changes implement a complete temperature conversion interface with text input and conversion buttons.

  • Renamed class from TemperatureConverter to TempConverter and extended JFrame
  • Added GUI components including text field and conversion buttons
  • Implemented temperature conversion logic for both Fahrenheit-to-Celsius and Celsius-to-Fahrenheit

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Swarno-Coder Swarno-Coder added the hacktoberfest-accepted The contribution was accepted for hactoberfest label Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted The contribution was accepted for hactoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants