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:
- 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.
- Select Run and then Run main from the menu
bar.
- Try creating and saving a new To-Do file:
- Close the program and then rerun it.
- 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.
- Select the ToDoList class in the Workbench.
- From the Selected menu, select Manage and then
Version. The Versioning Selected Items SmartGuide
appears.
- Ensure that Automatic is selected and select
Finish.
