<APPLET>
tag.
Applets can be located anywhere, whether on your local machine
or somewhere out on the Internet. The location of the applet is
completely invisible to you, the user. However, the location of
the applet is encoded within the <APPLET>
tag. The browser
decodes this information, locates the applet, and runs it. If the
applet is on some machine other than your own, the browser must
download the applet before it can be run.
This is the highest level of access that you have to the Internet from the Java development environment. Someone else has taken the time to write a browser that does all of the grunt work of connecting to the network and getting data from it, thereby enabling you to run applets from anywhere in the world.
For more information:
The "Hello World!" Application shows you how to write your first applet and run it.
The Java Applets trail describes how to write Java applets from A to Z.
This is the next highest level of interaction you can have with the Internet — your Java program gets an address of something it wants, creates a URL for it, and then uses some existing function in the Java development environment that does the grunt work of connecting to the network and retrieving the resource.
For more information:
How to Use Icons shows you how to load an image into your Java program (whether applets
or applications) when you have its URL. Before you can load the image
you must create a URL object with the address of the resource in it.
Working with URLs, the next lesson in this trail, provides a complete discussion about URLs, including how your programs can connect to them and read from and write to that connection.