to know the basic about applet

Hi,

good after noon.

I have finished a simple project in java with Swing,MS-Access and JFreeReport.

Now I want to learn about applets.

So I write the following simple applet and run it in MS-Dos by the command ofappletviewer awtcont.java

Then I get the result well and I got the hope also.

Now I got the words of we can run our applets by other browsers like Internet explorer.

will you please tell me how to run the simple applet by using InternetExplorer.

my simple applet code is

import java.applet.*;

import java.awt.*;

publicclass awtcontextends Applet

{

publicvoid init()

{

Label l1=new Label("Enter your name");

Label l2=new Label("Enter your id");

TextField tx1=new TextField(20);

TextField tx2=new TextField(20);

setLayout(new GridLayout());

add(l1);

add(tx1);

add(l2);

add(tx2);

}

}

/* <applet code="awtcont" width=400 height=400>

</applet>

*/

Thank you so much.

Meena

[1669 byte] By [myque-ans@soona] at [2007-10-2 18:21:10]
# 1
I would put the html code from awtcont.java into a file, for example awtcont.html. Then just open that file from InternetExplorer. The .html file and the awtcont.class file must be in the same directory.
atmguya at 2007-7-13 19:41:44 > top of Java-index,Desktop,Core GUI APIs...
# 2
HI,Thank you so much for your reply.I got the resultRegardsMeena.
myque-ans@soona at 2007-7-13 19:41:44 > top of Java-index,Desktop,Core GUI APIs...