A good answer might be:
You want to start the second line at the same distance from the left edge as the
first line.
If characters are 10 pixels high,
you need to increase y from 30 to something greater than 40
(since there should be some space between lines.)
| |
Slightly New ExampleSay that an applet has a width of 300 pixels and a height of 150 pixels. You wish to write the word "Hello" roughly in the center of this area. Here is a partly completed applet to do that:
Say also that you know that the String "Hello" will be 40 pixels wide. | |
QUESTION 5:Fill in the blanks. Click Here after you have answered the question |