applets are not initialised
hello
i have written a simple applet program just to check how applets work..
import java.applet.Applet;
import java.awt.*;
/*<APPLET
CODE= applet.class
WIDTH= 200
HEIGHT= 300 >
</APPLET>*/
public class applet extends Applet
{
public Textfield text;
public void init()
{
text = new TextField(20);
add(text);
text.setText("Hello from java");
}
}
when i run this program on command prompt as
c:\>appletviewer applet.java
it opens an applet window but doesnt give any msg as hello from java
and also gives as "applets are not initialised".
i heard that there is method to initiate an applet
can u pls tell me that method or any remedy on this...???????