This project asks you to create a GUI that can do temperature and distance conversion. It is in two parts. First make the display look right, then make the actions happen appropriately. Both together are to be sent in by the due date shown below, but when you have the first part working, send it in for comments before you add the second part. Please remember to ask for help if necessary, before the last minute.
1. Design an extension of JPanel intended for calculating conversions between distances in feet and in meters. The JPanel should contain two JTextFields, one displaying the message "Enter feet here" and the other "Enter meters here". Give the JPanel a flow layout manager, and add the two text fields.
2. Design a similar version of JPanel intended for calculating conversions between temperatures in celsius and in fahrenheit. This time the texts should be "Enter celsius here" and "Enter fahrenheit here.
3. Design an extension of JFrame to contain the two JPanels you made. Give it a suitable size, set the close box to exit the program, and give it an appropriate title. Also provide it with a grid layout with 2 rows and 1 column, and add instances of the two JPanels.
4. Create a class with a main to instantiate the JFrame of item 3 above, and display it.
5. So far your code provides a GUI to display, but it doesn't do anything. Now provide ActionListeners for each of the JTextFields of items 1 and 2 above. If one enters a fahrenheit temperature in the fahrenheit field, 212 for instance, and hits 'return' the display in that field should change to "fahrenheit: 212" and in the celsius field it should change to "celsius: 100". Similarly for the feet and meters fields. In order to do this you need to know how to calculate conversions. Here are the formulas you will need to use.
6. Provide a main to make it all work.