Example painting into Graphics
public class ShapesApplication
static final String message = "Shapes!";
ShapesApplication(String str) {
myFont = new Font("Helvetica", Font.BOLD, 36);
public static void main(String[] argv) {
new ShapesApplication("Shapes Example");