• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 37. Developing Java Applets > Step by Step Through the Code

Step by Step Through the Code

This section walks through the code for the HelloApplet class so you can see why each line is written the way it is. Even though only one executable statement exists (in line 8), this tiny program illustrates many of the principles you'll use in writing any Java applet.

  • The class is declared to be public.

  • The class contains a member named paint().

  • paint() is declared to be public and to return void.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint