A previous example used drawString(...) to draw three strings in the applet window: g.drawString( startMsg, 25, 25 ); g.drawString( paintMsg, 25, 50 ); g.drawString( stopMsg, 25, 75 ); |
Each string is drawn at the same horizontal position, but the vertical position is arbitrary |
We want to do better than that... |