Owl Sams Teach Yourself Java 2 in 24 Hours

Hour 4: Understanding How Java Programs Work

NOTES AND CORRECTIONS

  • Line 3 of Listing 4.3 contains a reference to com.sun.java.swing.JApplet. This is correct if you're using JDK 1.2 Beta 4, but the name was changed in subsequent versions of JDK 1.2. If you're not using 1.2 Beta 4, replace com.sun.java.swing with javax.swing. The new Line 3 is the following:
    • public class RootApplet extends javax.swing.JApplet {
  • At the end of this hour, the workshop is a guided tour of several Java applets. Each of these shows how a Java program on the Web can be modified with the use of the PARAM tag. Visit each of the following pages with the current version of Netscape Navigator or Microsoft Internet Explorer. The HTML tag used to create the applet also will be displayed.  

SOURCE FILES

READER QUESTIONS

  • None

ACTIVITIES