Answer:
The
JTextField for Fahrenheit termperatue input.
Application with GUI
Here is the program (not yet complete). It is based on the example in the previous chapter, so most of it should be understandable. Decide what belongs in the program then click on the button to see an anwser. Look at the picture as you decide in what order to add components.
The GUI is nearly complete, but more work is needed:
- There should be code to deal with the user's input.
- The application needs to be called to process the data.
- The result should be displayed.
QUESTION 5:
What method is used to get the text from the input JTextField?