Note:You can examine the HTML source code of almost any page by choosing "Page Source" or "Source" under the "View" menu of your browser.
Below you will find links to applet writing tutorials and a great many examples of applets, some which which you can freely include on your Web pages:
Here is the java code for our FirstApplet.java.
Here is the HTML file FirstApplet.html to display this applet.
Here is a short documentation for methods for a Graphics object.
Here is an activity for you to sharpen your HTML and Applet writing skills:
Your TA will help you to Create a Web page of your own.
To do this, create a file named
index.html (you can rename FirstApplet.html file)
and put it and the other files it uses in your
public_html directory.
Anyone can view your page by visiting the URL
http://www.cs.miami.edu/students/UserName
Make sure to include several links, an applet, and some fancy layout. You should include (modify?) the FirstApplet.java applet. Have fun. Please check out some of the links above to learn more about how to write HTML documents.
NOTE: Refresh button on most browsers do not reload a recompiled
applet class file. There are several ways around this problem.
You can close and open your browser (this works with Firefox), or
you can use on the command line
appletviewer FirstApplet.html
Notice that you need to point to the corresponding HTML file.