How to write a Java applet

HomePage | Recent changes | View source | Discuss this page | Page history | Log in |

Printable version | Disclaimers | Privacy policy

Writing an applet? This is what you need to do.

  • Write and compile a class that extends java.applet.Applet
  • Write an HTML file that has an <applet code="yourclass.class" height="[height]" width="[width]"></applet> tag in it.
  • Use
   appletviewer yourhtml.html

to view the file.