aspose file tools*
The moose likes Java in General and the fly likes Applet Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applet Tag" Watch "Applet Tag" New topic
Author

Applet Tag

jokop jokop
Greenhorn

Joined: May 25, 2005
Posts: 2
my applet classes are in different directories

my Applet class (Game.class) is located at a directory contained in directory which has another class that my applet uses (StatusPanel.class)

1) Applet class: C:\......\game2e\game\Game.class
2) another class: C:\......\game2e\StatusPanel.class

but I dont know how to write the APPLET tag in the html file
p.s. I have set CLASSPATH to both directories

any suggestions would be appreciated :roll:
Fahd Shariff
Ranch Hand

Joined: Nov 22, 2002
Posts: 38
Where is your applet file stored? Is it in here: C:\......\game2e ?

Here is how you write a tag:

<APPLET CODE=MyApplet.class CODEBASE="."
WIDTH=500 HEIGHT=20>
</APPLET>

(The codebase is the directory which contains the class files.)


Fahd Shariff<br />"Let the code do the talking"
jokop jokop
Greenhorn

Joined: May 25, 2005
Posts: 2
sharif,
my problem is that my 2 classes (Game.class,StatusPane.class) used in applet are in different directories:
my Applet class is here: game2e/game/Game.class
my StatusPanel.class is here game2e/StatusPanel.class

how do I refer to both classes in my html file?
thanks
 
Don't get me started about those stupid light bulbs.
 
subject: Applet Tag