Meaningless Drivel is fun!
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applet Tag" Watch "Applet Tag" New topic

Applet Tag

jokop jokop

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="."

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

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

Joined: May 25, 2005
Posts: 2
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?
I agree. Here's the link:
subject: Applet Tag
It's not a secret anymore!