package com.uvigo.mhp;

import com.uvigo.mhp.*;
import java.awt.*;
import java.awt.event.*;
import org.havi.ui.*;

public class FrontEndTemplate extends FrontEnd
{
    public FrontEndTemplate()
    {
        try
        {
            initComponents();
            courseDelegate.setPage(this);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    private void initComponents()//GEN-BEGIN:initComponents
    {
        mainContextManager = new com.uvigo.mhp.ContextManager();
        courseDelegate = new com.uvigo.mhp.CourseDelegate();

        setLayout(null);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    public com.uvigo.mhp.ContextManager mainContextManager;
    public com.uvigo.mhp.CourseDelegate courseDelegate;
    // End of variables declaration//GEN-END:variables
    
    
    public static void main(String[] args)
    {
        HSceneFactory hsFactory = HSceneFactory.getInstance();
        HScene scene = hsFactory.getBestScene(new HSceneTemplate());
        scene.setLayout(new BorderLayout());
        
        scene.add(new __NAME__());
        
        scene.addWindowListener(new WindowAdapter()
        {
            public void windowClosing(WindowEvent e)
            {
                System.exit(0);
            }
        }
        );
        scene.setVisible(true);
        scene.validate();
    }
}