Java and the Internet: Introduction
We have by now covered most of the basic topics in the Java programming language. We have learned how to create stand-alone applications and applet, how to create our own reusable classes, how to incorporate threads into a program or applet, how to create simple graphics, and how to deal with exceptions (or errors).Now we will start focusing on one of the issues that makes Java more powerful than most programming languages: network support. Java has contains classes that allow you to easily create programs that can read or write data from the Internet, or to create complete "client/server" solutions that enhance the features of a web browser. We have actually already seen one applet that deals with the Internet by itself: the "ChatterBox" applet that we use for our chat sessions.
In this sequence of lectures we will deal with:
manipulating the status bar of your web browser from inside a Java applet | |
getting your web browser to load and display a page on the web from inside an applet | |
loading an image into an applet | |
loading and playing a sound inside an applet | |
security restrictions that an applet is forced to obey |
The above possibilities are all built-in to the Applet class that we have been using for quite a while already. Here is the Java API for the Applet class: