only half an applet

When I make a simple applet or I look at the examples, only half of the applet is shown.Which parameters do I change? for example:I get hallo winstead of hallo world
[213 byte] By [thierry123] at [2007-9-26 5:58:05]
# 1

This is the code

<HTML>

<HEAD>

<TITLE>Hallo wereld </TITLE>

</HEAD>

<BODY>

<P>Mijn nieuwe Java-applet zegt :

<APPLET CODE = "hallo2.class">

</APPLET>


Klik op deze <A HREF = "Hallo2.java">

Link</A>, om de brontekst van het java-applet weer te geven.

</BODY>

</HTML>

import java.awt.Font;

import java.awt.Color;

import java.awt.Graphics;

public class hallo2 extends java.applet.Applet{

String str = "Hallo Wereld!";

int w = 400;

int h = 70;

Font f = new Font("Arial", Font.BOLD + Font.ITALIC,48);

public void init() {

resize(w,h);

}

public void paint (Graphics g){

g.setFont(f);

g.drawRect(0,0,w-1,h-1);

g.setColor(Color.red);

g.drawString(str,10,50);

}

}

thierry123 at 2007-7-1 14:33:06 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 2
Specify size of the applet in the applet tag (in the html page).<APPLET CODE = "hallo2.class" HEIGHT="100"WIDTH="450"></APPLET>hope this helps you
johnvinod at 2007-7-1 14:33:06 > top of Java-index,Archived Forums,New To Java Technology Archive...
# 3
Thanks, now it works!!!!!!!!
thierry123 at 2007-7-1 14:33:06 > top of Java-index,Archived Forums,New To Java Technology Archive...