/*
Generated by Cosmo Code 2.5.

Note: 
	Comments beginning with //{{ and ending with
	//}} denote non-editable code blocks. If you edit
	the code between these comments, your edits will be lost
	the next time you save from the Visual Builder.

	When generating the code for this class, Cosmo Code
	looks for these comments. If you remove the comments, 
	Cosmo Code will not generate the required code for this
	class.

	If you accidentally remove the comments, open any other
	source file generated by Cosmo Code, and copy the comments
	from that file into the corrupted file.
*/




import java.applet.*;
import java.awt.*;
import java.applet.Applet;


//{{ import_classes - Begin Non-Editable Code Block
//}} import_classes - End Non-Editable Code Block

/**
 * Put the class description here.
 * @author AUTHORNAME
 * @version VERSIONDATA
 */
public class Promenad extends java.applet.Applet
 
{
	/**
	 * init() is called by the browser or applet viewer to inform
	 * this applet that it has been loaded into the system. It is always
	 * called before the first time that the <code>start</code> method is
	 * called to initialize the applet.
	 */

	public void init()
	{
		// TODO: Add initialization code before or after the 
		//       ccInit() method call.

		super.init();  // Call parent class's initialization routine
		ccInit();      // Do local initializations
	}

	/**
	 * destroy() is called by the browser or applet viewer to inform
	 * this applet that it is being reclaimed and that it should destroy
	 * any resources that it has allocated. The <code>stop</code> method
	 * will always be called before <code>destroy</code>.
	 */

	public void destroy()
	{
		// TODO: Add any required clean up code here.

		super.destroy();
	}

	/**
	 * start() is called by the browser or applet viewer to inform
	 * this applet that it should start its execution. It is called after
	 * the <code>init</code> method and each time the applet is revisited
	 * in a Web page.
	 */

	public void start()
	{
		// TODO: Add startup code here when you want to perform an
		//       action each time the page containing this applet
		//       is visited.

		super.start();
	}

	/**
	 * stop() is called by the browser or applet viewer to inform
	 * this applet that it should stop its execution. It is called when
	 * the Web page that contains this applet has been replaced by
	 * another page, and also just before the applet is to be destroyed.
	 */

	public void stop()
	{
		// TODO: Add shutdown code here when you want to perform an
		//       action each time the page containing this applet
		//       is exited.

		super.stop();
	}

	/**
	 * ccInit() performs local initialization for this class.
	 * Specifically, it's used for initialization by Cosmo Code.
	 */

	void ccInit()
	{       
		// TODO: Optionally add further initializations before or after
		//       the non-editable blocks.

		//{{ init_objects - Begin Non-Editable Code Block
		//}} init_objects - End Non-Editable Code Block
	}

	/**
	 * ccHandleEventMapExceptions() handles exceptions that may have
	 * occurred during event mapping.  This method will not be 
	 * regenerated by Cosmo Code and you may therefore freely modify it 
	 * to fit your needs.
	 */

	void ccHandleEventMapExceptions(Throwable thrown)
	{
		if (thrown instanceof ClassNotFoundException)
		{
			// TODO: Optionally provide your own error handling code

			System.err.println("EXCEPTION: Can't find class for EventMapper: " + thrown.getMessage());
		}
		else if (thrown instanceof NoSuchMethodException)
		{
			// TODO: Optionally provide your own error handling code

			System.err.println("EXCEPTION: Can't find method for event map: " + thrown.getMessage());
		}
		else
		{
			// TODO: Optionally provide your own error handling code

			System.err.println("EXCEPTION: Unexpected exception during event map: " + thrown.getMessage());
			thrown.printStackTrace();
		}
	}

	//{{ declarations - Begin Non-Editable Code Block
	//}} declarations - End Non-Editable Code Block 

	//{{ adaptors - Begin Non-Editable Code Block
	//}} adaptors - End Non-Editable Code Block
}

