Project
|
||
...create a project ? | Go to Project Menu and select the New menu. The File Dialog box appears.
Enter a name (with .kawa extension if you are running Win95), let's say
animator.kawa (animator tutorial
here...). You may change the directory where the file will be store
also. After pressing OK, you should see in the project pane a new item
starting the tree view list. |
|
...add files into a project? | First, you should have defined a project (look the question/answer
above to create a kawa project). Now you can either use you mouse or the
main menu bar to add files in your kawa project.
|
|
...compile a java file? | You can compile your applet or application without creating a kawa
project, even if it is not really recommended... Make sure you have selected
in the menu Project/Compiler Options the (-g) options . ![]() Then you can either press the F7 key to compile the current opened java
source file or by using the right mouse button you can select the Compile
options
After selecting this options you can see the output result in the debug
pane
|
|
...display my java classes? | When you create a project and then insert some java source files into
it, we display each .java source file in the project panel. You can expand
the Animator.java file to display the associated classes by clicking on
the little + icon![]() Click again on the Animator.java + icon, Kawa displays three folders, 1 for the classes definition, an other for Imports definition and a last one for the Interfaces definitions. Click on the Classes folder to display all the classes defined in the java file. ![]() In the animator class (see figure below), we have three (3) classes. Click on the Animator class to expand the tree . ![]() You can either select the Methods folder to see the methods defined
in this class or choose the variables folder. Kawa display the list of methods, the square color means the degree
of protection of this method (Green = public, Blue = protected, red = pricate).
You will find the same squares in the variable folder. |
|
...run the applet/application | Basically, you can either run a java file directly from the interpreter
(java tool) in this case you have to select your main .java class in the
project window or you can lunch an HTML file using the appletviewer or
your favorite browser. To run your applet (or application), just Press
the F4 key (or F5 in debug mode) or select from the main
menu bar Build/Run menu (or Build/Debug/Run) |
|
...select the main .java class. | If you want to run your code as an java application, You have to select
your main .java file (usually it contains a main() method). Select your
.java file in the project list and use the right mouse button to select
the Main Class option
Kawa will insert a red rectangle on the bean to show you the current
selection
|
|
...select the main HTML file" . | If you want to run your code as an java applet, You have to select
your main .html(l) file (usually it contains an HTML applet
TAG). Select your .htm(l) file in the project list and use the right mouse
button to select the Main HTML option
Kawa will insert a blue rectangle on the bean to show you the current
selection
Kawa can create for you a default HTML file. Select the Project/Default
HTML menu
|
|
...use the Package hierarchy? | As you notice, the project window contains two (2) tabs, one for the
projectlist and the second one is the package hierachy. It displays the
entire Sun Java JDJ 1.1 packages.
|
|
...create a default HTML file to run my applet? | ||
...call help? | ||
Copyright (c) 1996, 1997, WebCetera, WebMaster, Dallas, TX