Section 2 - Objects: the key to Java
HelloFancy
HelloFancy2
HelloFancy3
These applets illustrate the following concepts:
- Making opening comments
- Meaning of importing the 'awt' and 'applet' packages; the definition of
packages and how to navigate through packages in the Java documentation
- Making an instance of the label class and assigning the instance to a name
- Meaning of a constructor and how to look them up in a Java documentation
- How to make a font. This requires an understanding of the fields of the
Font object (and some of the strange things about multiplatform programming)
- How to use a method to attach a font to a label
- How to set colors for a component. This requires an understanding of how
the Component class is related to teh Label class
- How to add a named object to an applet