package com.uvigo.tMaestro.SCOCreator.templates;

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

public class page1_22 extends Page
 {
     public page1_22()
 {
     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.
      */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        mainContextManager = new com.uvigo.mhp.ContextManager();
        courseDelegate = new com.uvigo.mhp.CourseDelegate();
        hTextLook21 = new com.uvigo.mhp.looks.HTextLook2();
        hPanel1 = new com.uvigo.mhp.ui.HPanel();
        hLabel1 = new com.uvigo.mhp.ui.HLabel();
        hButton1 = new com.uvigo.mhp.ui.HButton();
        hButton2 = new com.uvigo.mhp.ui.HButton();
        hButton3 = new com.uvigo.mhp.ui.HButton();
        hLabel2 = new com.uvigo.mhp.ui.HLabel();
        hPanel2 = new com.uvigo.mhp.ui.HPanel();
        hImage1 = new com.uvigo.mhp.ui.HImage();
        hLabel3 = new com.uvigo.mhp.ui.HLabel();

        courseDelegate.setPage(this);
        hTextLook21.setSeparator("   ");

        setLayout(null);

        setBackground(java.awt.Color.orange);
        setBackgroundImageURL("file:/c:/teleco/mhp/fondo3.jpg");
        setForeground(java.awt.Color.white);
        setName("hPage");
        setOpaque(true);
        hPanel1.setLayout(null);

        hPanel1.setBackground(java.awt.Color.orange);
        hPanel1.setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_DONT_SHOW);
        hPanel1.setForeground(java.awt.Color.white);
        hPanel1.setName("hPanel1");
        hPanel1.setOpaque(true);
        add(hPanel1);
        hPanel1.setBounds(8, 68, 430, 350);

        hLabel1.setBackground(java.awt.Color.black);
        hLabel1.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel1.setFont(new java.awt.Font("Bremen Bd BT", 0, 36));
        hLabel1.setForeground(java.awt.Color.orange);
        hLabel1.setLabel("El muro de Berl\u00edn");
        hLabel1.setName("hLabel1");
        add(hLabel1);
        hLabel1.setBounds(10, 10, 640, 50);

        hButton1.setContentFile("templates/play.xml");
        hButton1.setName("hButton1");
        add(hButton1);
        hButton1.setBounds(450, 310, 60, 52);

        hButton2.setContentFile("templates/pause.xml");
        hButton2.setName("hButton2");
        add(hButton2);
        hButton2.setBounds(520, 310, 60, 52);

        hButton3.setContentFile("templates/stop.xml");
        hButton3.setName("hButton3");
        add(hButton3);
        hButton3.setBounds(590, 310, 60, 52);

        hLabel2.setBackground(java.awt.Color.magenta);
        hLabel2.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel2.setFont(new java.awt.Font("Dialog", 0, 24));
        hLabel2.setLabel("El muro de Berl\u00edn");
        hLabel2.setName("hLabel2");
        add(hLabel2);
        hLabel2.setBounds(10, 430, 640, 40);

        hPanel2.setLayout(null);

        hPanel2.setBackgroundImageMode(com.uvigo.mhp.ui.HPanel.IMAGE_DONT_SHOW);
        hPanel2.setName("hPanel2");
        hPanel2.setOpaque(true);
        hImage1.setImageURL("templates/kennedy.gif");
        hImage1.setName("hImage1");
        hPanel2.add(hImage1);
        hImage1.setBounds(10, 0, 196, 209);

        hLabel3.setLabel("John Fitzgerald Kennedy - Antiguo presidente de los USA");
        try {
            hLabel3.setLook(hTextLook21);
        } catch (org.havi.ui.HInvalidLookException e1) {
            e1.printStackTrace();
        }
        hLabel3.setName("hLabel3");
        hPanel2.add(hLabel3);
        hLabel3.setBounds(10, 210, 196, 17);

        add(hPanel2);
        hPanel2.setBounds(450, 70, 220, 230);

    }
    // </editor-fold>//GEN-END:initComponents
     
     
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.uvigo.mhp.CourseDelegate courseDelegate;
    private com.uvigo.mhp.ui.HButton hButton1;
    private com.uvigo.mhp.ui.HButton hButton2;
    private com.uvigo.mhp.ui.HButton hButton3;
    private com.uvigo.mhp.ui.HImage hImage1;
    private com.uvigo.mhp.ui.HLabel hLabel1;
    private com.uvigo.mhp.ui.HLabel hLabel2;
    private com.uvigo.mhp.ui.HLabel hLabel3;
    private com.uvigo.mhp.ui.HPanel hPanel1;
    private com.uvigo.mhp.ui.HPanel hPanel2;
    private com.uvigo.mhp.looks.HTextLook2 hTextLook21;
    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_22());
     
     scene.addWindowListener(new WindowAdapter()
 {
     public void windowClosing(WindowEvent e)
 {
     System.exit(0);
     }
     }
     );
     scene.setVisible(true);
     scene.validate();
     }
}
