Testing Applet Programs:

  1. You CANNOT run an applet program using:

        java RectangleApplet
    

    Applets are designed to be run inside a web browser

  2. The web browser is NOT designed to test applets.

  3. Testing an applet:

    appletviewer   webpage.html

    • where webpage.html contains the <APPLET> or <EMBED> tag

    • the CODE parameter specifies the applet program name

  4. Example: