Saving and testing the completed To-Do List program

Now that you have completed the enhanced To-Do List program, you are ready to save and test it.

To save and test your completed To-Do List program:

  1. Select Save Bean from the Bean menu to save your changes. VisualAge for Java generates the code to implement all the work you have done in the Visual Composition Editor since the last time you saved.
  2. Select Run and then Run main from the menu bar.
  3. Try creating and saving a new To-Do file:
  4. Close the program and then rerun it.
  5. Select Open To-Do File. The list that you entered previously should appear in the window.

Congratulations! You have completed a Java program that combines a user interface created in the Visual Composition Editor with nonvisual code that you created directly.

Before you continue, create a versioned edition of the ToDoList class.

  1. Select the ToDoList class in the Workbench.
  2. From the Selected menu, select Manage and then Version. The Versioning Selected Items SmartGuide appears.
  3. Ensure that Automatic is selected and select Finish.