package demo;

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

public class page1_4 extends Page
 {
     public page1_4()
 {
     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();
        mediaPlayer1 = new com.uvigo.mhp.mediaPlayer.MediaPlayer();
        hTextLook21 = new com.uvigo.mhp.looks.HTextLook2();
        hRangeLook21 = new com.uvigo.mhp.looks.HRangeLook2();
        hLabel1 = new com.uvigo.mhp.ui.HLabel();

        mediaPlayer1.setConfigurationFile("file:/c:/teleco/demo/italia/turandot.xml");
        mediaPlayer1.setPlaybackLoop(false);
        mediaPlayer1.setVolume(1.0F);
        hTextLook21.setDelay(250);
        hTextLook21.setSeparator(" * * * ");

        setLayout(null);

        setBackground(java.awt.Color.black);
        setBackgroundImageURL("file:/c:/teleco/mhp/fondo2.jpg");
        setOpaque(true);
        hLabel1.setBackground(java.awt.Color.cyan);
        hLabel1.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
        hLabel1.setFont(new java.awt.Font("TypoUpright BT", 0, 36));
        hLabel1.setLabel("\u00a1Enhorabuena!\n\nHas completado el curso\nde demostraci\u00f3n");
        add(hLabel1);
        hLabel1.setBounds(10, 6, 640, 460);

    }//GEN-END:initComponents
     
     
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private com.uvigo.mhp.CourseDelegate courseDelegate;
    private com.uvigo.mhp.ui.HLabel hLabel1;
    private com.uvigo.mhp.looks.HRangeLook2 hRangeLook21;
    private com.uvigo.mhp.looks.HTextLook2 hTextLook21;
    private com.uvigo.mhp.ContextManager mainContextManager;
    private com.uvigo.mhp.mediaPlayer.MediaPlayer mediaPlayer1;
    // 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_4());
     
     scene.addWindowListener(new WindowAdapter()
 {
     public void windowClosing(WindowEvent e)
 {
     System.exit(0);
     }
     }
     );
     scene.setVisible(true);
     scene.validate();
     }
}
