JTextField
.JTextField
.
Swing has other components that might be appropriate for input and display of output,
but for now, let us use JTextField
s .
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 JTextField
s
placed into a JFrame
.
Which components need a listener?