/*
 * TextApplet2.java
 */

import java.awt.*;
import java.applet.*;

public class TextApplet2 extends Applet {

    public void paint( Graphics g ) {
	
	Color red = new Color( 255, 0, 0 );    // (R,G,B)
	g.setColor( red );
	Font f = new Font("Helvetica", Font.ITALIC, 18 );    // family, style, size
	g.setFont( f );
	
	g.drawString("Applet from GUI section of chapter 3", 20, 20);

	Color blue = new Color( 0, 0, 255 );
	g.setColor( blue );
	g.fillOval( 20, 20, 60, 30 );

	// drawing commands:
	//     drawLine(), drawRect(), drawOval(), fillRect(), fillOval()
	
    } // end main
} // end class
