A quick guide to posting an applet

  1. Write your  JAVA code somewhere in your public_html directory. You may also write it anywhere else, but you will need to move it to the public_html directory in order to post it.
  2. Compile your code there
  3. chmod 644 YourClass.class and all the other classes that will be generated because of the ActionListener
  4. Create a web page in the same directory where your JAVA classes are. You should add the APPLET tag to it.

The Applet tag looks as follows:

 

 

"<applet
CODE="YourClass.class"
WIDTH=www HEIGHT=hhh
IGNORE=""></applet>"
 

 

 


Substitute www and hhh for your own 
width and height.
Substitute YourClass.class with the name of your own class.
The Applet tag should be regarded as any other html tag inside your HTML 
page.