TOC PREV NEXT INDEX



Completing the program


Looking back at the IDE, you should see the TextEditor.Main file in the 'Composer Files' group. Let's look at the code you just created.

  1. Choose the 'Java Source Files' group. You should see a new file called TextEditor.java. This is the java code which has been generated by the Composer. (If you are using the demo version of Simplicity for Java, the composer will not create the Java source file. Use Finished.java instead for the rest of the tutorial.)
  2. Double-click the TextEditor.java icon. This opens Simplicity's Java Source Editor with the TextEditor.java file loaded. Browse through the code. You will see toward the bottom of the file all of the code which you generated using the Code Sourcerer.
  3. Exit the Java Editor. (Don't save any changes to the file just yet.)

Now we want to compile and test the program.

  1. You want to bring up the pop-up menu for the TextEditor.java icon. This is usually done by clicking the right mouse button on the icon, but this behavior varies on different operating systems. You can also show the pop-up menu by holding the shift key and clicking the icon with the mouse.
  2. Choose 'Compile' from the pop-up menu. Simplicity for Java now invokes your Java compiler to turn the Java source code which you just created into an executable file, called a Java class file.
  3. In the Project Tree, choose 'Java Class Files'. You should see an icon named TextEditor.class. This file is your executable program.
  4. Double click TextEditor.class. The Class Viewer appears. The Class Viewer can provide a variety of information about the contents of a class file.
  5. At the bottom of the Class Viewer is a large button labelled Run. Press this button to run the application.

Congratulations! You have completed this tutorial and learned many of the basics of working with Simplicity for Java.


Data Representations, Inc.
http://www.datarepresentations.com
support@datarepresentations.com
sales@datarepresentations.com
TOC PREV NEXT INDEX