A good answer might be:See below. | |
Runnable GUIThe field is 15 characters long, which means that 15 characters will be displayed. The object can hold more than 15, but the user will have to use the arrow keys on the keyboard to scroll through them.
This program can be copied to NotePad, compiled, and run. | |
QUESTION 4:It would be nice if the TextField had some words beside it that described its contents. What do you suppose the AWT class that puts labels in a frame is called? Click Here after you have answered the question |