
// now we use the "font" class

import java.awt.*;
import java.applet.Applet;

public class HelloWorld2 extends Applet
{


	Font f = new Font("Helvetica",Font.BOLD,24);


	public void init() {

	}

	public void paint(Graphics g) {
		 g.setFont(f);
       	 g.setColor(Color.red);
		 g.drawString("Hello World!", 20, 30);
	}
}

