A GUI Component: TextField
A TextField is a box that contains text.
The user can type text into the box and the program can get it
and then use it as data.
The program can write the results of a calculation to a TextField.
Here a TextField has been added to a Web page:
The component works correctly, and is displayed correctly,
but if you enter text into it, nothing happens.
The component has not been connected to any application code.
(Actually the above was done with JavaScript, not Java, but the idea is the same.)
|