|
| | Karel 14a: Type some words
Complete the following in class or for homework. Do NOT hand in your work unless other instructions were given.
| 1. |
Modify the FramePlay program so that it displays a short sentence such as “I Love Java!”.
- Note that the sentence appears as soon as the program runs; it is not typed by the user
- Hint: look at the on-line documentation for JTextArea()
|
 |
| |
|
|
| 2. |
If the sentence is too long you can’t see it. Use setLineWrap() so that all the words in your longer sentence are displayed. |
before |
after |
|
|
|
|
|
|
|
|
|
|
|
|