// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:48:10
// Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   Video.java

package project;

import java.awt.*;
import java.awt.event.WindowEvent;
import javax.swing.JDialog;
import javax.swing.JPanel;
import traduccion.Traducir;

// Referenced classes of package project:
//            LabelDelVideo, AccederADatos, ControlDeLasPreguntasTipoV

public class Video extends JDialog
{

    public Video()
    {
        super(AccederADatos.frameActivo, "IT Txartela", true);
        contentPane = (JPanel)getContentPane();
        setLocation(-1000, -1000);
        setResizable(false);
    }

    public void tamaF1o(String mediaFile2, ControlDeLasPreguntasTipoV vid2)
    {
        try
        {
            vid = vid2;
            setTitle(Traducir.getTraduccion(AccederADatos.leer("h.proyecto"), "project.Video", "200411291745", AccederADatos.idioma));
            labelDelVideo = null;
            contentPane.setLayout(new BorderLayout());
            String mediaFile = mediaFile2;
            labelDelVideo = new LabelDelVideo(this);
            contentPane.add(labelDelVideo, "Center");
            labelDelVideo.cargarYComenzar(mediaFile, vid);
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }

    protected void processWindowEvent(WindowEvent e)
    {
        super.processWindowEvent(e);
        if(e.getID() == 201)
            labelDelVideo.stop();
    }

    Dimension screenSize;
    ControlDeLasPreguntasTipoV vid;
    JPanel contentPane;
    LabelDelVideo labelDelVideo;
}