Vispatch Tutorial (using Java 1.02) > TOC > Applet Editing Features > Running Vispatch Programs

Running Vispatch Programs

Event mode is used to run Vispatch programs. Selecting the second tool button places the applet in event mode. Thereafter, all mouse actions on the Vispatch document are treated as events and are processed according to the Vispatch program on the document.

Some programs can take a long time to terminate. Once a Vispatch program is running, any user event will stop it. For example, the Vispatch program below can take some time to draw a complete tree with a fan-out of 5 branches. Trying making a moderate size tree, and then pressing the spacebar before the tree is completed. Drawing of the tree should stop soon. Clicking on the document or any of the tool buttons also stops a running Vispatch program.