import java.awt.*;
import java.applet.*;

public class GraphicHello extends Applet
{
	static final int H_SIZE = 300;
	static final int V_SIZE = 200;

	public void init()
	{
		setFont(new Font("TimesRoman",Font.BOLD,24));
		setBackground(Color.white);
		resize(H_SIZE,V_SIZE);
	}

	public void paint(Graphics g)
	{
		// This gets cut-off because the baseline is
		// too near to the top.
		// We also want to change the color of the font
		// when we draw
		g.setColor(Color.black);
		g.drawString("Hello World", 10,10);

		// This is just fine for this window
		g.setColor(Color.red);
		g.drawString("Hello", 10,50);

	}
}

