Youwill rewrite the temperature conversion program from the previous week.Your G
ID: 3619080 • Letter: Y
Question
Youwill rewrite the temperature conversion program from the previous week.Your GUI application must inherit from the JFrame class. The GUI andevent handling setup should be done in the constructor. Do not useany of the GUI editing capabilities of Eclipse for this assignment.The temperature conversion application should have a label andJTextField where the user inputs a value which must appear inthe upper part of the frame. There should be a set of threeradio buttons which indicate the input scale of the value to beconverted.
There should also be a setof three radio buttons which indicate the output scale to be convertedto. The three input scale buttons must appear verticallyaligned (i.e., use a JPanel) on the left side of thedisplay, and the three output scale buttons must appearvertically aligned (i.e., use another JPanel) and appear on theright side of the display. Event handling should be setup so thatselection of any input or output radio button causes an eventwhich triggers the event handling code to determine which of ninepossible conversions is needed. You can display the result in an outputtext field or in a Jlabel which appears in the bottom partof the display.
Your program should accuratelyconvert from Fahrenheit, Celsius, Kelvin to Fahrenheit,Celsius, Kelvin. NOTE: Only the selected conversion is displayed inthe output area!!! When the conversion selection changes, the outputarea should change to show only the new result. The output shoulddisplay three digits after the decimal point. HINT: Use the ItemListenerinterface and use the isSelected method on the radio buttonsto learn which buttons are turned on!
Explanation / Answer
..
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.