

import java.applet.*;	// for the class Applet that is extended by HelloWorld
import java.awt.*;	// for drawString(), Font class

public class HelloWorld extends Applet{

    private final String message = "Hello World";
    private Font font;

    public void init(){
        font = new Font( "Helvetica", Font.BOLD, 48 );
    }

    public void paint( Graphics g ){
        // The pink oval
        g.setColor( Color.pink );
        g.fillOval( 10,10,330,100 );

        g.setColor( Color.red );	// Set color for drawing oval
        g.drawOval( 10,10,330,100 );	// Draw multiple times for thick
        g.drawOval( 9, 9, 332,102 );	// border around oval
        g.drawOval( 8, 8, 334,104 );
        g.drawOval( 7, 7, 336,106 );

        g.setColor( Color.black );	// Set color for drawing message
        g.setFont( font );
        g.drawString( message, 40, 75 );
    }
}
