[Help Center][How Do I]


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.


 
To use the mouse, go inside the project pane, click right button a pop-up menu appears, select Add File. Now you can select one or multiple files in the file dialog box. Press Ok, all the selected files should be under your project name. WOOA easy...
 


 

...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.
 



 JDK 1.1. comes with a number of packages. You can manipulate this package tree view like the projecttreeview.
 

...create a default HTML file to run my applet?  
...call help?  

Copyright (c) 1996, 1997, WebCetera, WebMaster, Dallas, TX