package demo;

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

public class page1 extends Page
 {
     public page1()
 {
     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();
        hPanel1 = new com.uvigo.mhp.ui.HPanel();
        activeImage1 = new com.uvigo.mhp.activeImage.ActiveImage();

        setLayout(null);

        setBackground(java.awt.Color.orange);
        setBackgroundImageURL("file:/c:/teleco/mhp/fondo1.gif");
        setOpaque(true);
        hPanel1.setLayout(new java.awt.GridLayout(1, 1));

        hPanel1.setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_DONT_SHOW);
        hPanel1.setOpaque(true);
        activeImage1.setConfigurationFile("file:/c:/teleco/demo/mundo/mundo.xml");
        hPanel1.add(activeImage1);

        add(hPanel1);
        hPanel1.setBounds(8, 8, 430, 270);

    }//GEN-END:initComponents
     
     
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.uvigo.mhp.activeImage.ActiveImage activeImage1;
    private com.uvigo.mhp.CourseDelegate courseDelegate;
    private com.uvigo.mhp.ui.HPanel hPanel1;
    private com.uvigo.mhp.ContextManager mainContextManager;
    // 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 page1());
     
     scene.addWindowListener(new WindowAdapter()
 {
     public void windowClosing(WindowEvent e)
 {
     System.exit(0);
     }
     }
     );
     scene.setVisible(true);
     scene.validate();
     }
}
