Simple GUI example and A first look at Packaging
- except nested class or anonymous inner class created using Adapter class, a class will reside in its own file
- we use directory to orangize file
- Java use package which is a collection of class to orangize class
- hierarchical structure of package name helps ensure the uniqueness of class and package name
- Naming Conventions
- use the following Cutomerized GUI Components as a example
- we write the following application and applet
- note that for the package named custom.container, and custom.component, you must create a directory as follow:
- actrually a package is a directory that contains the class file