go to previous page   go to home page   go to next page

Answer:

Swing has other components that might be appropriate for input and display of output, but for now, let us use JTextFields .


GUI Design

GUI of the application

The user enters text (a String) into the Fahrenheit text field. The string will be converted into int format. We'll look at this this later.

This is similar to the application of the previous chapter; the GUI consists of JLabels and JTextFields placed into a JFrame.


QUESTION 4:

Which components need a listener?