import java.applet.Applet;
import java.awt.*;

/**
 * MT0 (Topy Machine Translation)
 *
 * @author Nobo Komagata 
 * @version 5/30/03
 */
public class MT0 extends Applet
{
    // Program constants
    static final String TITLE = 
        "MT0: Toy Machine Translation Program, Nobo Komagata, 5/30/03";
    static final String FILELOC = 
        "http://nobo.komagata.net/programs/MT0/Example1.txt";

    /**
     * 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 start method is called.
     */
    public void init()
    {
        setBackground(Color.white);
        add(new MainPanel());
    }

    /**
     * Called by the browser or applet viewer to inform this Applet that it 
     * should start its execution. It is called after the init method and 
     * each time the Applet is revisited in a Web page. 
     */
    public void start()
    {
    }

    /**
     * This may be the most important method in your applet: Here, the 
     * drawing of the applet gets done. "paint" gets called everytime the
     * applet should be drawn on the screen. So put the code here that
     * shows the applet.
     *
     * @param  g   the Graphics object for this applet
     */
    public void paint(Graphics g)
    {
    }

    /** 
     * 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. If you do not have any
     * resources that you need to release (such as threads that you may
     * want to stop) you can remove this method.
     */
    public void stop()
    {
    }

    /**
     * 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 stop method will always be called before destroy. 
     * If you do not have any resources that you need to release you can 
     * remove this method.
     */
    public void destroy()
    {
    }

    /**
     * Returns information about this applet. 
     * An applet should override this method to return a String containing 
     * information about the author, version, and copyright of the Applet.
     *
     * @return a String representation of information about this Applet
     */
    public String getAppletInfo()
    {
        // replace this with your own info
        return "Title: MT0\n" + 
               "Author: Nobo Komagata\n" +
               "A topy Machine Translation program";
    }

    /**
     * Returns information about the parameters that are understood by this 
     * Applet. You should return an array of Strings here to provide details
     * about each of the parameters separately.
     * Each element of the array should be a set of three Strings containing 
     * the name, the type, and a description.
     *
     * @return  a String[][] representation of parameter information about 
     *        this Applet
     */
    public String[][] getParameterInfo()
    {
        // provide parameter information about the applet
        String paramInfo[][] = null;
        /*{
             {"firstParameter", "1-10", "description of first parameter"},
             {"secondParameter", "boolean", "description of second parameter"}
        };*/
        return paramInfo;
    }
}

