Thank you for visiting Blazing Games

Structure of an applet

Here is a skeleton for an applet. You could look at the sample application that is provided for this chapter for a better idea of what a real program looks like.

As you can see, the code looks very similar to an application. Essentially we start with a package, which is the same as an application's package. Import statements are used to import java classes (more on this later). You will then notice that the class uses an extends clause to extend the applet class. Finally, the bulk of the class consists of four key methods.

Previous Chapter 4 Contents Page 3 of 10 Book Contents Next

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2003-2006 Blazing Games Inc. All Rights Reserved