client as an applet

how can I run an applet as a client? I mean how can I run it from the dos prompt ?Do i have to put it in an html file ? how can I use appletviewer?
[175 byte] By [sseans] at [2007-9-26 1:23:17]
# 1
You'll have to add the applet tag to your html page and runappletviewer your_page.html
leukbr at 2007-6-29 1:01:31 > top of Java-index,Core,Core APIs...
# 2

You can also put the applet tag in a comment block in your java file. That way you dont have to worry about the html file.

It should be before any import statements

/*

<applet code="myApplet" ...>

</applet>

*/

import....

/rest of the code...

dewangs at 2007-6-29 1:01:31 > top of Java-index,Core,Core APIs...