created: 03/07/98

CHAPTER 36 --- Applets

This chapter examines Java applets. An applet is an object who's methods are run under the control of a web browser. The web browser (such as the one you are possibly using right now) will call methods of the applet object when a web page containing an applet is loaded.

Chapter Topics:

  • Extending the Applet Class
  • Graphics Objects
  • The drawString() Method
  • The setBackground() and setColor() Methods
  • Compiling and Running Applets
  • Web Pages and HTML
  • The drawOval() method
  • The drawRect() method
  • The drawLine() method
  • Pen colors

QUESTION 1:

All of the applications you have seen so far have had a main method. Do you expect that applets will have a main method?

Click Here after you have answered the question