Java Reference
In-Depth Information
The project navigation tree allows the programmer to easily navigate and manipulate the Java projects, packages,
and their contents. Notice to the left of each item name is an icon that indicates the item type. To the left of some of
the item type icons are the symbols ( , ). These are expansion icons. Expansion icons appear next to items that
contain other items. These icons indicate if the tree item's contents are displayed ( ) or are not displayed ( ). In
this case, the contents of MyFirstProject and src are displayed, but the JRE (Java Run time Environment) System
Library package's contents (created by RAD when the project was created) are not. myFirstPackage does not have an
expansion icon because it was just created and is empty. You can display and close a sub-tree by clicking the item's
expansion icon or double-clicking the item name or item type icon.
5.
Click on the MyFirstProject expansion icon. The contents are hidden and the expansion
icon is changed.
6.
Click on the MyFirstProject expansion icon again. The contents are displayed and the
expansion icon is changed back.
7.
Double-click the project icon for MyFirstProject to hide the contents and then
double-click the project name (MyFirstProject) to redisplay the contents.
Tutorial: Creating a Java Class
Do you remember all the syntax rules for defining a class header? Probably not. Fortunately, RAD will walk you
through the process. In other words, just as you created a project and a package, RAD will supply a series of
windows to help you easily define a class:
1.
If myFirstPackage is not selected, select it by clicking its name.
2.
On the menu bar, click File, New, and then Class to display the “New Java Class” window
(see Figure 1-13 ).
 
Search WWH ::




Custom Search