package com.nullprogram.maze;

import java.awt.Dimension;

import javax.swing.JApplet;

public class MazeApplet extends JApplet {

    private static final long serialVersionUID = 7742407602430714892L;

    private int cellSize = 15;
    private int speed    = 10;
    private Maze maze;
    private MazeDisplay display;
    private MazeSolve solution;

    public void init() {
        Dimension size = getSize();
        maze = new Maze((int) (size.getWidth() / cellSize),
                        (int) (size.getHeight() / cellSize));
        display = new MazeDisplay(maze, cellSize);
        add(display);
        solution = new MazeSolve(maze, display, speed);
    }
}

@@ -664,11 +664,178 @@
 );%0A    %7D
+%0A%0A    public void start() %7B%0A        solution.start();%0A    %7D%0A%0A    public void stop() %7B%0A        solution.stop();%0A    %7D%0A%0A    public void destroy() %7B%0A        stop();%0A    %7D
 %0A%7D%0A

Use start/stop in the applet.