CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ | Grades

Applets

Applets
Objectives

Applied

  • Given a working Swing application, convert the application to an applet.
  • Write a simple HTML page that displays an applet.
  • Use the Applet Viewer to test an applet.
  • Use the Java Plug-in HTML Converter to convert an HTML page that includes an APPLET tag to a form that can be run by Internet Explorer or Netscape browsers.
  • Run an applet in a browser window by opening an HTML page that includes the applet.
  • Use the jar command to create an archive file that contains an applet, and modify the HTML file that displays the applet so the applet is run from the jar file.
  • Given the specifications for a program that uses the Swing components presented in this book, implement the program as an applet.

Knowledge

  • Explain the difference between a Java applet and an application.
  • Describe what happens if a user tries to run an applet without having the appropriate Java Plug-in installed.
  • Describe the operations applets are not allowed to do for security reasons.
  • List the four methods defined by the Applet class and explain when each of them is called.
  • Explain how to modify a Swing application so that it runs as an applet.
  • List three attributes that are commonly used with the APPLET tag.
  • Explain the purpose of the Applet Viewer.
  • Explain the purpose of the Java Plug-in HTML Converter.
  • Explain the purpose of the Java Console window and describe how to display it with version 5.0 or later of the JDK.
  • Explain the benefits of using jar files to deploy applets.
Introduction | Develop and test | JAR