Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Tag

 
jokop jokop
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
jokop jokop
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic