A good answer might be:The completed applet is given below. | |
Hello AppletIn this example applet, the x and y values for the start of the String are written as arithmetic expressions. The expression for x starts the string at the point half the string size to the left of half the drawing area's width. The expression for y starts the string at the point half the character size down from half the drawing area's height. Because going down the page means increasing Y, 10/2 is added to the center Y value. (There is a better way to do this, but it uses a few more methods.)
Here is what the applet looks like:
| |
QUESTION 6:
|