Now that you have added all the new beans to the free-form
surface, you are ready to begin connecting them.
The To-Do List applet should call the readToDoFile() method when
a user selects the Open To-Do File button. To implement
this, you must connect ReadButton to the readToDoFile()
method.
- Select ReadButton and click mouse button 2.
- Select Connect and then actionPerformed from the
pop-up menu that appears.
- Click mouse button 1 on the free-form surface and select Event to
Code.
- In the Event to Code window, select readToDoFile() from the
Method list and then select OK. The free-form
surface should look like this:

- Save your current work in the Visual Composition Editor by selecting
Save Bean from the Bean menu. VisualAge for Java
generates code to implement the connections you just specified.
Congratulations! You have implemented the Open To-Do File
button. Now you are ready to test the work you have done so far on the
To-Do List program.
