/*
 * Ex03_GUI_4.java -- Exercise 4 of GUI Supplements
 *
 * Write an applet that displays your first name in red 10-point TimeRoman font
 * and below displays your last name in orange 14-point Helvetica.  (Hint:  You
 * will have to use drawString() twice with different coordinates.)
 */

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

public class Ex03_GUI_4 extends Applet {

    public void paint( Graphics g ) {

	g.setColor( new Color( 255, 0, 0 ) );    // RGB = Red
	g.setFont( new Font( "TimesRoman", Font.ITALIC, 10 ) );
	g.drawString( "Kurt", 20, 20 );

	g.setColor( new Color( 255, 165, 0 ) );    // RGB = Orange
	g.setFont( new Font( "Helvetica", Font.BOLD, 14 ) );
	g.drawString( "Gochko", 20, 40 );

	g.setColor( new Color( 0, 0, 0 ) );    // RGB = Black
	g.setFont( new Font( "Courier", Font.PLAIN, 6 ) );
	g.drawString( "Foo Bar Xyz", 20, 60 );
	
    } // end paint()

} // end class
