// Decompiled by DJ v3.12.12.96 Copyright 2011 Atanas Neshkov  Date: 08/10/2012 8:48:08
// 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:   ThreadBarraDeProgreso.java

package project;

import javax.swing.JProgressBar;

// Referenced classes of package project:
//            JLabel, BarraDeProgresoCerrando

public class ThreadBarraDeProgreso extends JLabel
    implements Runnable
{

    public ThreadBarraDeProgreso()
    {
    }

    public void init()
    {
        tarea.start();
    }

    public void empezar(BarraDeProgresoCerrando bdp2)
    {
        bdp = bdp2;
        tarea = new Thread(this);
        init();
    }

    public void run()
    {
        try
        {
            for(int i = 0; i < 16; i++)
            {
                Thread.currentThread();
                Thread.sleep(200L);
                bdp.setValue(i);
            }

            Thread.currentThread();
            Thread.sleep(1000L);
            System.exit(1);
        }
        catch(InterruptedException e)
        {
            e.printStackTrace();
        }
    }

    Thread tarea;
    private BarraDeProgresoCerrando bdp;
}