Write a java gui application to do temperature conversions

Assignment Help JAVA Programming
Reference no: EM13811702

Write a Java GUI application to do temperature conversions between Celcius, Fahranheit, and Kelvin. The GUI display should look something like the following:

 

Your program must meet the following requirements:

 

1. Do not use any of the GUI editing capabilities of Eclipse for this assignment. Do all the GUI layout work based on what you have learned in class in the last 2 weeks.

 

2. The GUI and event handling setup should be done in the constructor of your GUI class or in private methods called from the constructor.

 

3. The display must have a label and JTextField where the user inputs a value which must appear in the upperpart of the frame as shown above.

 

4. There should be a set of 3 radio buttons which indicate the input scale of the value to be converted. The 3 input scale buttons must be vertically aligned on the left side of the display as shown above.

 

5. There should be a set of 3 radio buttons which indicate the output scale to be converted to. The 3 output scale buttons must be vertically aligned and appear on the right side of the display as shown above.

 

6. Event handling must be setup so that selection of any input or output button causes an eventwhich triggers the event handling code to determine which of 9 possible conversions is needed.

 

7. Event handling must also respond to the user hitting the enter key in the input textfield! For this event, the event handling code must also determine which conversion is needed based on which buttons are selected.

 

8. Display the conversion result in an output text field or in a JLabel which appears in the bottom part of the display as shown above. Output the degree symbol and output scale information as shown above. You can output a degree symbol by putting the character value 176 into a formatted string.

 

9. If a radio button is clicked when there is nothing in the input textfield, the event handler must display the string "No Input" in the output textfield.

 

10. Your program must accurately convert from Fahrenheit, Celcius, Kelvin to Fahrenheit, Celcius, Kelvin. Only the selected conversion is displayed in the output textfield.

 

11. You must create a separate class which does all the temperature conversion calculations. It should have 6 static methods, one for each possible conversion. Each of the 6 methods takes an input temperature and returns the appropriate converted temperature. This class could be used in any other application where temperature conversion is needed.

 

12. When the conversion selection changes due to clicking either an input or output scale button, the output area must change to show only the new result.

 

13. HINT: For radio button events, use the ItemListener interface and use the isSelected method on the radio buttons to find out which buttons are turned on!

 

14. The output must display 2 digits after the decimal point.

Reference no: EM13811702

Questions Cloud

Income statement-revenue before fixed costs : It represents the most recent years operations, which ended yesterday. Your Supervisor in the controller’s office has just handed you a memorandum asking for written responses to the following questions: If sales should increase by 25%, by what perce..
What occupations did or do you plan to hold as an adult : When you were a child, what occupations did or do you plan to hold as an adult? What occupation or occupations did you end up holding/ what type of jobs did you or do you do?
Identify significant elements of the constitution : Identify three significant elements of the Constitution
What are tqm and iso : What are TQM and ISO? How might TQM and ISO be used to improve an organization?
Write a java gui application to do temperature conversions : Write a Java GUI application to do temperature conversions between Celcius, Fahranheit, and Kelvin
Capital budgeting analysis on a project with estimated cost : Suppose you are running a capital budgeting analysis on a project with an estimated cost of $2 million. The project is considered similar to the existing lines of businesses for the company. Given the cash situation, the company will fund the project..
Write an essay on your short term personal financial and car : Write an essay on your short term personal financial and career goals and the tentative plan on how you will achieve them.
For initial public offerings of common stock : For initial public offerings of common stock, 2010 was a relatively slow year, with about $30.7 billion raised by the process. Relatively few of the 94 firms involved paid cash dividends. Why do you think that most chose not to pay cash dividends? Ex..
The affect of language between speakers and listeners : How does language affect the relationship between speakers and listeners

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd